#5F1D8E#5F1D8E

#5F1D8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.174 H 306.3°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5F1D8E
RGBrgb(95, 29, 142)
HSLhsl(275, 66%, 34%)
HSVhsv(275, 80%, 56%)
CMYKcmyk(33.1%, 79.6%, 0%, 44.3%)
CIE-LABlab(27.48, 48.96, -49.24)
CIE-LCHlch(27.48, 69.44, 314.84°)
OKLaboklab(39.7% 0.1029 -0.1401)
OKLCHoklch(39.7% 0.174 306.3)
XYZxyz(10.0401, 5.2647, 26.0732)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D8E #4C8E1D
analogous
#261D8E #5F1D8E #8E1D84
triadic
#5F1D8E #8E5F1D #1D8E5F
tetradic
#5F1D8E #8E261D #4C8E1D #1D848E
square
#5F1D8E #8E261D #4C8E1D #1D848E
split-complementary
#5F1D8E #848E1D #1D8E26
monochromatic
#1B0828 #3D135B #5F1D8E #8127C1 #9F4BDA

Accessibility & contrast

On white

10.23
#5F1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D8E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D8E#FFFFFF#000000##FFFFFF
##5F1D8E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#573A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1d8e;
/* rgb */ color: rgb(95, 29, 142);
/* oklch */ color: oklch(39.7% 0.174 306.3);
Tailwind
colors: {
  custom: {
    50: '#9161b0',
    500: '#5f1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d8e;
$custom-light: #9161b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d8e",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 275.044,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39698,
    "c": 0.17383,
    "h": 306.3
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

primary
#5F1D8E
secondary
#7ABD4A
accent
#E93F86
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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