HEX to OKLCH: #007595
Also known as: Tailwind cyan-700
Result
#007595 → oklch(0.523 0.099 225.3)
Values are shown at full precision, so converting back gives exactly #007595. 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: 0/255 = 0.00000 → 0.000000 (÷ 12.92) G: 117/255 = 0.45882 → 0.177888 (((x + 0.055) / 1.055)^2.4) B: 149/255 = 0.58431 → 0.300544 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.110869 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.153366 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.239451
3. cube root
l′ = ∛0.110869 = 0.480401 m′ = ∛0.153366 = 0.535274 s′ = ∛0.239451 = 0.620972
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.52338 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.06993 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.07072
5. Oklab → OKLCH
C = √(a² + b²) = 0.09946 H = atan2(b, a) = 225.325° L = 0.52338
6. OKLCH
oklch(0.52338 0.09946 225.325) rounded: oklch(0.523 0.099 225.3)
All formats
- HEX
- #007595
- RGB
- rgb(0 117 149)
- RGB (legacy)
- rgb(0, 117, 149)
- HSL
- hsl(192.89 100.00% 29.22%) → hsl(193 100% 29%)
- HWB
- hwb(193 0% 42%)
- OKLCH
- oklch(0.523 0.099 225.3) · oklch(52.3% 0.099 225.3)
- OKLab
- oklab(0.523 -0.070 -0.071)
- Lab (D50)
- lab(45.05 -19.53 -25.75)
- LCH (D50)
- lch(45.05 32.32 232.83)
- Display P3
- color(display-p3 0.1950 0.4516 0.5717)
- Linear sRGB
- color(srgb-linear 0.0000 0.1779 0.3005)
Gamut: sRGB and Display P3
#007595 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.099 and Display P3 reaches 0.131; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #007595;
color: rgb(0 117 149);
color: hsl(193 100% 29%);
color: oklch(0.523 0.099 225.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.523 0.099 225.3);
}
/* arbitrary values */
class="text-[#007595] bg-[oklch(0.523_0.099_225.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1950 0.4516 0.5717); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #007595 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 cyan-700#0E7490
- v3 sky-700#0369A1
- sky-700#0069A8
- teal#008080
- v3 teal-700#0F766E
- teal-700#00786F
- slate-500#62748E
- steelblue#4682B4
Lighter and darker, same hue and chroma
- #2587A8 · oklch(0.583 0.099 225.3) · ΔL +0.06
- #006383 · oklch(0.463 0.099 225.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?