#5E1238#5E1238

#5E1238 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.114 H 355.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#5E1238
RGBrgb(94, 18, 56)
HSLhsl(330, 68%, 22%)
HSVhsv(330, 81%, 37%)
CMYKcmyk(0%, 80.9%, 40.4%, 63.1%)
CIE-LABlab(20.43, 36.90, -3.93)
CIE-LCHlch(20.43, 37.10, 353.93°)
OKLaboklab(32.91% 0.1133 -0.0099)
OKLCHoklch(32.91% 0.114 355)
XYZxyz(5.5466, 3.0985, 4.0466)
Luminance0.0310 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1238 #125E38
analogous
#5E125E #5E1238 #5E1212
triadic
#5E1238 #385E12 #12385E
tetradic
#5E1238 #5E5E12 #125E38 #12125E
square
#5E1238 #5E5E12 #125E38 #12125E
split-complementary
#5E1238 #125E12 #125E5E
monochromatic
#1A050F #2B0819 #5E1238 #911C57 #C52675

Accessibility & contrast

On white

12.97
#5E1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5E1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1238
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1238#FFFFFF#000000##FFFFFF
##5E12381.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212839
Deuteranopia (green-blind)
#363636
Tritanopia (blue-blind)
#660923
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5e1238;
/* rgb */ color: rgb(94, 18, 56);
/* oklch */ color: oklch(32.9% 0.114 355.0);
Tailwind
colors: {
  custom: {
    50: '#8f586e',
    500: '#5e1238',
    950: '#000000',
  },
}
SCSS
$custom: #5e1238;
$custom-light: #8f586e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1238",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 330,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32908,
    "c": 0.11373,
    "h": 355
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#5E1238
secondary
#359666
accent
#EB943D
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5E1238

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5E1238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva