#5F126A#5F126A

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

Color values

HEX#5F126A
RGBrgb(95, 18, 106)
HSLhsl(293, 71%, 24%)
HSVhsv(293, 83%, 42%)
CMYKcmyk(10.4%, 83%, 0%, 58.4%)
CIE-LABlab(23.36, 45.15, -33.06)
CIE-LCHlch(23.36, 55.96, 323.79°)
OKLaboklab(35.93% 0.1195 -0.0925)
OKLCHoklch(35.93% 0.151 322.2)
XYZxyz(7.5369, 3.9066, 13.9899)
Luminance0.0391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F126A #1D6A12
analogous
#33126A #5F126A #6A1249
triadic
#5F126A #6A5F12 #126A5F
tetradic
#5F126A #6A3312 #1D6A12 #12496A
square
#5F126A #6A3312 #1D6A12 #12496A
split-complementary
#5F126A #496A12 #126A33
monochromatic
#17041A #300936 #5F126A #8E1B9E #BD24D3

Accessibility & contrast

On white

11.79
#5F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F126A
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F126A#FFFFFF#000000##FFFFFF
##5F126A1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#203A68
Tritanopia (blue-blind)
#60243E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f126a;
/* rgb */ color: rgb(95, 18, 106);
/* oklch */ color: oklch(35.9% 0.151 322.2);
Tailwind
colors: {
  custom: {
    50: '#905b95',
    500: '#5f126a',
    950: '#000000',
  },
}
SCSS
$custom: #5f126a;
$custom-light: #905b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f126a",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 292.5,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35933,
    "c": 0.15114,
    "h": 322.2
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#5F126A
secondary
#44A236
accent
#EE3A51
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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