#5F105E#5F105E

#5F105E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.143 H 328.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5F105E
RGBrgb(95, 16, 94)
HSLhsl(301, 71%, 22%)
HSVhsv(301, 83%, 37%)
CMYKcmyk(0%, 83.2%, 1.1%, 62.7%)
CIE-LABlab(22.35, 43.55, -26.81)
CIE-LCHlch(22.35, 51.14, 328.38°)
OKLaboklab(34.96% 0.1221 -0.0743)
OKLCHoklch(34.96% 0.143 328.7)
XYZxyz(6.9249, 3.6122, 10.9200)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F105E #105F11
analogous
#39105F #5F105E #5F1037
triadic
#5F105E #5E5F10 #105E5F
tetradic
#5F105E #5F3910 #105F11 #10375F
square
#5F105E #5F3910 #105F11 #10375F
split-complementary
#5F105E #375F10 #105F39
monochromatic
#1A041A #2B072A #5F105E #931992 #C822C6

Accessibility & contrast

On white

12.19
#5F105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F105E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F105E#FFFFFF#000000##FFFFFF
##5F105E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#621D37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f105e;
/* rgb */ color: rgb(95, 16, 94);
/* oklch */ color: oklch(35.0% 0.143 328.7);
Tailwind
colors: {
  custom: {
    50: '#905a8c',
    500: '#5f105e',
    950: '#000000',
  },
}
SCSS
$custom: #5f105e;
$custom-light: #905a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f105e",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 300.759,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34956,
    "c": 0.14294,
    "h": 328.7
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#5F105E
secondary
#339834
accent
#EE3C3A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F105E

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

Preview Lab → · Contrast checker → · Palette generator →

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