#5F105B#5F105B

#5F105B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.140 H 330.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5F105B
RGBrgb(95, 16, 91)
HSLhsl(303, 71%, 22%)
HSVhsv(303, 83%, 37%)
CMYKcmyk(0%, 83.2%, 4.2%, 62.7%)
CIE-LABlab(22.16, 43.02, -25.12)
CIE-LCHlch(22.16, 49.82, 329.72°)
OKLaboklab(34.76% 0.1222 -0.0694)
OKLCHoklch(34.76% 0.14 330.4)
XYZxyz(6.7929, 3.5594, 10.2248)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F105B #105F14
analogous
#3C105F #5F105B #5F1034
triadic
#5F105B #5B5F10 #105B5F
tetradic
#5F105B #5F3C10 #105F14 #10345F
square
#5F105B #5F3C10 #105F14 #10345F
split-complementary
#5F105B #345F10 #105F3C
monochromatic
#1A0419 #2B0729 #5F105B #93198D #C822BF

Accessibility & contrast

On white

12.27
#5F105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F105B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F105B#FFFFFF#000000##FFFFFF
##5F105B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#293959
Tritanopia (blue-blind)
#631C35
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f105b;
/* rgb */ color: rgb(95, 16, 91);
/* oklch */ color: oklch(34.8% 0.140 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f598a',
    500: '#5f105b',
    950: '#000000',
  },
}
SCSS
$custom: #5f105b;
$custom-light: #8f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f105b",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 303.038,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.14049,
    "h": 330.4
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#5F105B
secondary
#339838
accent
#EE433A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F105B

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

Preview Lab → · Contrast checker → · Palette generator →

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