#5E1040#5E1040

#5E1040 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.120 H 348.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#5E1040
RGBrgb(94, 16, 64)
HSLhsl(323, 71%, 22%)
HSVhsv(323, 83%, 37%)
CMYKcmyk(0%, 83%, 31.9%, 63.1%)
CIE-LABlab(20.52, 38.60, -9.36)
CIE-LCHlch(20.52, 39.72, 346.37°)
OKLaboklab(33.08% 0.1178 -0.0246)
OKLCHoklch(33.08% 0.12 348.2)
XYZxyz(5.7271, 3.1211, 5.1503)
Luminance0.0312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1040 #105E2E
analogous
#55105E #5E1040 #5E1019
triadic
#5E1040 #405E10 #10405E
tetradic
#5E1040 #5E5510 #105E2E #10195E
square
#5E1040 #5E5510 #105E2E #10195E
split-complementary
#5E1040 #195E10 #105E55
monochromatic
#1A0412 #2A071C #5E1040 #921964 #C72287

Accessibility & contrast

On white

12.93
#5E1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1040
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1040#FFFFFF#000000##FFFFFF
##5E10401.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#34363E
Tritanopia (blue-blind)
#650C26
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5e1040;
/* rgb */ color: rgb(94, 16, 64);
/* oklch */ color: oklch(33.1% 0.120 348.2);
Tailwind
colors: {
  custom: {
    50: '#8f5874',
    500: '#5e1040',
    950: '#000000',
  },
}
SCSS
$custom: #5e1040;
$custom-light: #8f5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1040",
  "rgb": {
    "r": 94,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 323.077,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.12036,
    "h": 348.2
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#5E1040
secondary
#339759
accent
#EE7F3A
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5E1040

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

Preview Lab → · Contrast checker → · Palette generator →

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