#5F1D8B#5F1D8B

#5F1D8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.171 H 307.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5F1D8B
RGBrgb(95, 29, 139)
HSLhsl(276, 65%, 33%)
HSVhsv(276, 79%, 55%)
CMYKcmyk(31.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(27.23, 48.27, -47.78)
CIE-LCHlch(27.23, 67.91, 315.29°)
OKLaboklab(39.45% 0.1036 -0.1358)
OKLCHoklch(39.45% 0.171 307.3)
XYZxyz(9.8179, 5.1758, 24.9029)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D8B #498B1D
analogous
#281D8B #5F1D8B #8B1D80
triadic
#5F1D8B #8B5F1D #1D8B5F
tetradic
#5F1D8B #8B281D #498B1D #1D808B
square
#5F1D8B #8B281D #498B1D #1D808B
split-complementary
#5F1D8B #808B1D #1D8B28
monochromatic
#1A0826 #3C1258 #5F1D8B #8228BE #A049D9

Accessibility & contrast

On white

10.32
#5F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D8B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D8B#FFFFFF#000000##FFFFFF
##5F1D8B1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#583953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1d8b;
/* rgb */ color: rgb(95, 29, 139);
/* oklch */ color: oklch(39.4% 0.171 307.3);
Tailwind
colors: {
  custom: {
    50: '#9161ae',
    500: '#5f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d8b;
$custom-light: #9161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d8b",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 276,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39449,
    "c": 0.17084,
    "h": 307.3
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#5F1D8B
secondary
#76BB49
accent
#E83F83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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