#5E126A#5E126A

#5E126A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.151 H 321.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5E126A
RGBrgb(94, 18, 106)
HSLhsl(292, 71%, 24%)
HSVhsv(292, 83%, 42%)
CMYKcmyk(11.3%, 83%, 0%, 58.4%)
CIE-LABlab(23.18, 44.94, -33.36)
CIE-LCHlch(23.18, 55.97, 323.42°)
OKLaboklab(35.77% 0.1182 -0.0934)
OKLCHoklch(35.77% 0.151 321.7)
XYZxyz(7.4336, 3.8533, 13.9851)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E126A #1E6A12
analogous
#32126A #5E126A #6A124A
triadic
#5E126A #6A5E12 #126A5E
tetradic
#5E126A #6A3212 #1E6A12 #124A6A
square
#5E126A #6A3212 #1E6A12 #124A6A
split-complementary
#5E126A #4A6A12 #126A32
monochromatic
#17041A #300936 #5E126A #8C1B9E #BB24D3

Accessibility & contrast

On white

11.86
#5E126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5E126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E126A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E126A#FFFFFF#000000##FFFFFF
##5E126A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#5F253E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e126a;
/* rgb */ color: rgb(94, 18, 106);
/* oklch */ color: oklch(35.8% 0.151 321.7);
Tailwind
colors: {
  custom: {
    50: '#8f5b95',
    500: '#5e126a',
    950: '#000000',
  },
}
SCSS
$custom: #5e126a;
$custom-light: #8f5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e126a",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 291.818,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35771,
    "c": 0.1507,
    "h": 321.7
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#5E126A
secondary
#45A236
accent
#EE3A53
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E126A

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

Preview Lab → · Contrast checker → · Palette generator →

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