#5B126A#5B126A

#5B126A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.149 H 319.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#5B126A
RGBrgb(91, 18, 106)
HSLhsl(290, 71%, 24%)
HSVhsv(290, 83%, 42%)
CMYKcmyk(14.2%, 83%, 0%, 58.4%)
CIE-LABlab(22.65, 44.31, -34.24)
CIE-LCHlch(22.65, 56.00, 322.30°)
OKLaboklab(35.29% 0.1144 -0.0962)
OKLCHoklch(35.29% 0.149 319.9)
XYZxyz(7.1319, 3.6977, 13.9709)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B126A #216A12
analogous
#2F126A #5B126A #6A124D
triadic
#5B126A #6A5B12 #126A5B
tetradic
#5B126A #6A2F12 #216A12 #124D6A
square
#5B126A #6A2F12 #216A12 #124D6A
split-complementary
#5B126A #4D6A12 #126A2F
monochromatic
#16041A #2E0936 #5B126A #881B9E #B524D3

Accessibility & contrast

On white

12.07
#5B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B126A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B126A#FFFFFF#000000##FFFFFF
##5B126A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#1B3868
Tritanopia (blue-blind)
#5B253E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b126a;
/* rgb */ color: rgb(91, 18, 106);
/* oklch */ color: oklch(35.3% 0.149 319.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a95',
    500: '#5b126a',
    950: '#000000',
  },
}
SCSS
$custom: #5b126a;
$custom-light: #8d5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b126a",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 289.773,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35289,
    "c": 0.14943,
    "h": 319.9
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#5B126A
secondary
#49A236
accent
#EE3A59
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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