#5F126F#5F126F

#5F126F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.156 H 319.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5F126F
RGBrgb(95, 18, 111)
HSLhsl(290, 72%, 25%)
HSVhsv(290, 84%, 44%)
CMYKcmyk(14.4%, 83.8%, 0%, 56.5%)
CIE-LABlab(23.72, 46.13, -35.73)
CIE-LCHlch(23.72, 58.35, 322.24°)
OKLaboklab(36.3% 0.1188 -0.1004)
OKLCHoklch(36.3% 0.156 319.8)
XYZxyz(7.8045, 4.0136, 15.3995)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F126F #226F12
analogous
#30126F #5F126F #6F1251
triadic
#5F126F #6F5F12 #126F5F
tetradic
#5F126F #6F3012 #226F12 #12516F
square
#5F126F #6F3012 #226F12 #12516F
split-complementary
#5F126F #516F12 #126F30
monochromatic
#17041A #32093A #5F126F #8C1BA4 #B923D8

Accessibility & contrast

On white

11.65
#5F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F126F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F126F#FFFFFF#000000##FFFFFF
##5F126F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#1B3B6D
Tritanopia (blue-blind)
#5F2741
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f126f;
/* rgb */ color: rgb(95, 18, 111);
/* oklch */ color: oklch(36.3% 0.156 319.8);
Tailwind
colors: {
  custom: {
    50: '#905b99',
    500: '#5f126f',
    950: '#000000',
  },
}
SCSS
$custom: #5f126f;
$custom-light: #905b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f126f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 289.677,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36297,
    "c": 0.15552,
    "h": 319.8
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#5F126F
secondary
#4AA637
accent
#EF3958
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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