#5F1D8A#5F1D8A

#5F1D8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.170 H 307.7°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5F1D8A
RGBrgb(95, 29, 138)
HSLhsl(276, 65%, 33%)
HSVhsv(276, 79%, 54%)
CMYKcmyk(31.2%, 79%, 0%, 45.9%)
CIE-LABlab(27.15, 48.03, -47.28)
CIE-LCHlch(27.15, 67.40, 315.45°)
OKLaboklab(39.37% 0.1039 -0.1344)
OKLCHoklch(39.37% 0.17 307.7)
XYZxyz(9.7452, 5.1467, 24.5199)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D8A #488A1D
analogous
#281D8A #5F1D8A #8A1D7E
triadic
#5F1D8A #8A5F1D #1D8A5F
tetradic
#5F1D8A #8A281D #488A1D #1D7E8A
square
#5F1D8A #8A281D #488A1D #1D7E8A
split-complementary
#5F1D8A #7E8A1D #1D8A28
monochromatic
#190825 #3C1257 #5F1D8A #8228BD #A049D9

Accessibility & contrast

On white

10.35
#5F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D8A
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D8A#FFFFFF#000000##FFFFFF
##5F1D8A1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#583853
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1d8a;
/* rgb */ color: rgb(95, 29, 138);
/* oklch */ color: oklch(39.4% 0.170 307.7);
Tailwind
colors: {
  custom: {
    50: '#9161ad',
    500: '#5f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d8a;
$custom-light: #9161ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d8a",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 276.33,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39367,
    "c": 0.16983,
    "h": 307.7
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#5F1D8A
secondary
#75BB48
accent
#E84082
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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