HEX to OKLCH: #C2410C
Also known as: Tailwind v3 orange-700
Result
#C2410C → oklch(0.553 0.174 38.4)
Values are shown at full precision, so converting back gives exactly #c2410c. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. sRGB → linear
R: 194/255 = 0.76078 → 0.539479 (((x + 0.055) / 1.055)^2.4) G: 65/255 = 0.25490 → 0.052861 (((x + 0.055) / 1.055)^2.4) B: 12/255 = 0.04706 → 0.003677 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.250925 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.150695 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.064845
3. cube root
l′ = ∛0.250925 = 0.630737 m′ = ∛0.150695 = 0.532148 s′ = ∛0.064845 = 0.401753
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.55343 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.13625 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.10800
5. Oklab → OKLCH
C = √(a² + b²) = 0.17386 H = atan2(b, a) = 38.402° L = 0.55343
6. OKLCH
oklch(0.55343 0.17386 38.402) rounded: oklch(0.553 0.174 38.4)
All formats
- HEX
- #c2410c
- RGB
- rgb(194 65 12)
- RGB (legacy)
- rgb(194, 65, 12)
- HSL
- hsl(17.47 88.35% 40.39%) → hsl(17 88% 40%)
- HWB
- hwb(17 5% 24%)
- OKLCH
- oklch(0.553 0.174 38.4) · oklch(55.3% 0.174 38.4)
- OKLab
- oklab(0.553 0.136 0.108)
- Lab (D50)
- lab(46.73 51.02 55.26)
- LCH (D50)
- lch(46.73 75.21 47.28)
- Display P3
- color(display-p3 0.7036 0.2913 0.1353)
- Linear sRGB
- color(srgb-linear 0.5395 0.0529 0.0037)
Gamut: sRGB and Display P3
#C2410C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.180 and Display P3 reaches 0.203; this color uses 97% of the sRGB chroma available.
CSS snippets
.element {
color: #c2410c;
color: rgb(194 65 12);
color: hsl(17 88% 40%);
color: oklch(0.553 0.174 38.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.553 0.174 38.4);
}
/* arbitrary values */
class="text-[#c2410c] bg-[oklch(0.553_0.174_38.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7036 0.2913 0.1353); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c2410c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- orange-700#CA3500
- amber-700#BB4D00
- v3 amber-700#B45309
- v3 red-600#DC2626
- v3 red-700#B91C1C
- red-700#C10007
- sienna#A0522D
- firebrick#B22222
Lighter and darker, same hue and chroma
- #D75527 · oklch(0.613 0.174 38.4) · ΔL +0.06
- #AD2C00 · oklch(0.493 0.174 38.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?