OKLCH to HEX: #BE123C

Also known as: Tailwind v3 rose-700

Result

oklch(0.51426 0.19781 16.935) → #BE123C

Values are shown at full precision, so converting back gives exactly #be123c. 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. 1. input

    oklch(0.51426 0.19781 16.935)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.18923
    b = C·sin H = 0.05762
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.601694
    m′ = L − 0.1056·a − 0.0639·b = 0.490605
    s′ = L − 0.0895·a − 1.2915·b = 0.422912
  4. 4. cube

    l = 0.601694³ = 0.217835
    m = 0.490605³ = 0.118085
    s = 0.422912³ = 0.075640
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.514935
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.006047
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.045186
  6. 6. linear → sRGB, × 255

    R = 0.74511 × 255 = 190.00 → 190
    G = 0.07057 × 255 = 18.00 → 18
    B = 0.23529 × 255 = 60.00 → 60
  7. 7. RGB → HEX

    #BE123C

All formats

HEX
#be123c
RGB
rgb(190 18 60)
RGB (legacy)
rgb(190, 18, 60)
HSL
hsl(345.35 82.69% 40.78%) → hsl(345 83% 41%)
HWB
hwb(345 7% 25%)
OKLCH
oklch(0.514 0.198 16.9) · oklch(51.4% 0.198 16.9)
OKLab
oklab(0.514 0.189 0.058)
Lab (D50)
lab(41.48 63.83 26.16)
LCH (D50)
lch(41.48 68.98 22.28)
Display P3
color(display-p3 0.6833 0.1639 0.2487)
Linear sRGB
color(srgb-linear 0.5149 0.0060 0.0452)

Gamut: sRGB and Display P3

#BE123C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.206 and Display P3 reaches 0.232; this color uses 96% of the sRGB chroma available.

CSS snippets

.element {
  color: #be123c;
  color: rgb(190 18 60);
  color: hsl(345 83% 41%);
  color: oklch(0.514 0.198 16.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.514 0.198 16.9);
}
/* arbitrary values */
class="text-[#be123c] bg-[oklch(0.514_0.198_16.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6833 0.1639 0.2487); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #be123c calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #D4304D · oklch(0.574 0.198 16.9) · ΔL +0.06
  • #A9002C · oklch(0.454 0.198 16.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?