#5F105D#5F105D

#5F105D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 329.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#5F105D
RGBrgb(95, 16, 93)
HSLhsl(302, 71%, 22%)
HSVhsv(302, 83%, 37%)
CMYKcmyk(0%, 83.2%, 2.1%, 62.7%)
CIE-LABlab(22.28, 43.37, -26.25)
CIE-LCHlch(22.28, 50.70, 328.82°)
OKLaboklab(34.89% 0.1221 -0.0727)
OKLCHoklch(34.89% 0.142 329.2)
XYZxyz(6.8803, 3.5943, 10.6852)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F105D #105F12
analogous
#3A105F #5F105D #5F1036
triadic
#5F105D #5D5F10 #105D5F
tetradic
#5F105D #5F3A10 #105F12 #10365F
square
#5F105D #5F3A10 #105F12 #10365F
split-complementary
#5F105D #365F10 #105F3A
monochromatic
#1A041A #2B072A #5F105D #931990 #C822C4

Accessibility & contrast

On white

12.22
#5F105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F105D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F105D#FFFFFF#000000##FFFFFF
##5F105D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#631D36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f105d;
/* rgb */ color: rgb(95, 16, 93);
/* oklch */ color: oklch(34.9% 0.142 329.2);
Tailwind
colors: {
  custom: {
    50: '#90598b',
    500: '#5f105d',
    950: '#000000',
  },
}
SCSS
$custom: #5f105d;
$custom-light: #90598b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f105d",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 301.519,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.14211,
    "h": 329.2
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#5F105D
secondary
#339835
accent
#EE3E3A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F105D

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

Preview Lab → · Contrast checker → · Palette generator →

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