// Generated by `pnpm run generate:fitted` (scripts/fitted/generate.ts). Do not edit by hand. // // Colour model v2. Released versions are frozen: a different fit becomes a new version. // Fit of the Tailwind CSS v4 palette: lightness: 2 shared hue curve(s), 3 harmonics, chroma: share of sRGB (3 harmonics) × exact sRGB max, refitted per shade with 12 harmonics, hue drift, sRGB window 105° ± 40° (82% / 95% of sRGB max). // ΔE (OKLab × 100) against Tailwind v4: RMS 1.63, max 5.4; leave-one-family-out RMS 2.11. import type { FittedModel } from './fitted' export const MODEL_V2: FittedModel = { chroma: { curves: [ [0.018792, -0.003816, 0.004058, -0.00165, -0.003122, 0.00155, -0.002375, 0.000509, 0.001784, -0.001427, -0.0008, -0.00001, -0.001118, 0.000909, 0.000236, -0.00092, 0.000693, -0.000449, -0.000469, 0.000385, -0.000293, 0.000159, 0.000744, -0.000487, 0.000003], [0.044041, -0.010453, 0.013916, -0.004756, -0.009983, 0.005245, -0.007603, 0.001865, 0.006095, -0.005145, -0.002204, 0.000767, -0.003654, 0.00278, 0.001417, -0.00319, 0.002017, -0.000963, -0.002183, 0.001719, -0.000284, -0.000117, 0.002389, -0.001663, -0.000677], [0.084459, -0.016722, 0.025152, -0.007122, -0.018177, 0.010353, -0.01277, 0.000866, 0.009446, -0.006294, -0.006737, 0.002105, -0.002712, 0.001054, 0.001301, -0.003655, 0.000557, 0.000245, -0.000926, -0.000641, 0.000223, 0.000493, 0.001026, -0.000565, 0.000486], [0.136426, -0.013483, 0.021287, 0.003689, -0.022556, 0.005544, -0.005305, -0.005682, -0.004047, 0.004934, -0.003207, -0.00789, 0.000323, 0.00075, -0.004597, -0.000163, 0.00297, -0.003745, 0.000606, 0.001268, 0.000116, -0.001549, 0.001541, 0.001448, -0.000165], [0.185617, 0.016961, 0.004368, 0.009844, -0.02426, 0.00041, 0.006683, -0.011614, -0.012106, 0.002125, -0.004135, -0.007714, 0.002332, -0.002262, -0.004802, -0.001065, 0.005421, -0.003139, 0.000963, 0.002351, 0.001319, -0.001143, 0.002956, 0.001772, -0.001008], [0.204808, 0.044351, -0.012947, 0.003638, -0.030678, 0.001629, 0.016838, -0.009823, -0.005015, -0.001744, -0.003902, -0.01054, 0.006931, -0.001074, -0.002439, 0.001689, 0.00205, -0.002534, -0.000424, 0.004236, -0.000302, 0.000542, 0.000533, -0.000513, -0.002297], [0.200381, 0.06378, -0.026933, 0.000027, -0.025459, -0.002877, 0.027674, -0.006956, 0.004762, 0.001075, -0.003502, -0.007406, 0.005387, 0.000506, -0.002777, 0.003412, -0.002269, -0.004092, -0.00273, 0.001393, 0.000278, 0.002001, 0.002208, 0.000428, -0.002005], [0.177073, 0.063158, -0.033851, -0.00622, -0.020278, -0.006185, 0.030741, -0.002016, 0.003898, 0.001835, -0.00955, -0.008601, 0.001561, 0.000429, 0.000417, 0.006174, -0.00064, -0.002175, -0.002681, -0.000152, 0.000976, 0.001525, 0.003163, 0.000099, -0.001976], [0.146899, 0.054344, -0.027694, -0.004772, -0.017516, -0.005159, 0.023668, -0.001838, 0.001642, 0.000952, -0.008952, -0.006986, 0.001674, 0.001501, 0.001082, 0.005856, -0.000878, -0.002488, -0.002321, -0.000834, 0.001704, 0.001666, 0.002962, 0.000194, -0.00247], [0.119686, 0.044038, -0.019371, -0.002806, -0.015516, -0.003355, 0.0162, -0.002495, 0.000306, 0.000567, -0.007174, -0.004932, 0.001728, 0.001489, 0.000662, 0.004565, -0.000762, -0.002217, -0.001438, -0.000538, 0.001433, 0.001356, 0.002131, -0.000165, -0.002089], [0.084842, 0.031339, -0.016582, -0.000599, -0.014601, -0.003141, 0.008876, -0.002841, -0.000588, 0.000177, -0.00455, -0.002388, 0.001807, 0.00147, 0.000169, 0.00277, -0.00078, -0.001884, -0.000266, -0.000094, 0.001028, 0.001031, 0.000894, -0.000693, -0.001474], ], curvesHaveConst: true, intercepts: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], weights: [ [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], ], }, hueDrift: { curves: [ [0.792238, 2.617254, -1.709469, 0.832654, -2.469054, 0.531278], ], curvesHaveConst: false, intercepts: [-0.595322, -0.297455, -0.566309, -0.403802, -0.174071, 0, 0.348675, 0.124462, -0.085623, 0.019517, 0.714828], weights: [ [2.989717], [3.010635], [2.950181], [2.436762], [1.431808], [0], [-1.40972], [-2.347456], [-2.623736], [-2.758168], [-3.104475], ], }, lightness: { curves: [ [-0.458123, 0.18906, -0.149799, -0.157009, 0.021186, -0.147974], [5.799194, -2.020729, 1.905469, 2.032688, -0.239059, 1.701378], ], curvesHaveConst: false, intercepts: [0.977967, 0.952294, 0.909201, 0.846658, 0.763273, 0.692807, 0.605046, 0.51816, 0.448356, 0.396948, 0.277692], weights: [ [0.166643, 0.012454], [0.306601, 0.022974], [0.489184, 0.036225], [0.840901, 0.062177], [1.393735, 0.103787], [1.796533, 0.136375], [1.592201, 0.123767], [0.926265, 0.073292], [0.717127, 0.057418], [0.610052, 0.048813], [0.023085, 0.001605], ], }, shades: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], }