#5F1C8A#5F1C8A

#5F1C8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.171 H 307.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5F1C8A
RGBrgb(95, 28, 138)
HSLhsl(277, 66%, 33%)
HSVhsv(277, 80%, 54%)
CMYKcmyk(31.2%, 79.7%, 0%, 45.9%)
CIE-LABlab(27.01, 48.42, -47.50)
CIE-LCHlch(27.01, 67.83, 315.55°)
OKLaboklab(39.27% 0.1047 -0.135)
OKLCHoklch(39.27% 0.171 307.8)
XYZxyz(9.7210, 5.0985, 24.5118)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C8A #478A1C
analogous
#281C8A #5F1C8A #8A1C7E
triadic
#5F1C8A #8A5F1C #1C8A5F
tetradic
#5F1C8A #8A281C #478A1C #1C7E8A
square
#5F1C8A #8A281C #478A1C #1C7E8A
split-complementary
#5F1C8A #7E8A1C #1C8A28
monochromatic
#190724 #3C1257 #5F1C8A #8226BD #A047DA

Accessibility & contrast

On white

10.40
#5F1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C8A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C8A#FFFFFF#000000##FFFFFF
##5F1C8A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1c8a;
/* rgb */ color: rgb(95, 28, 138);
/* oklch */ color: oklch(39.3% 0.171 307.8);
Tailwind
colors: {
  custom: {
    50: '#9161ad',
    500: '#5f1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c8a;
$custom-light: #9161ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c8a",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 276.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39272,
    "c": 0.17088,
    "h": 307.8
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#5F1C8A
secondary
#74BB46
accent
#E93F81
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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