#5F1C87#5F1C87

#5F1C87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.168 H 308.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1C87
RGBrgb(95, 28, 135)
HSLhsl(278, 66%, 32%)
HSVhsv(278, 79%, 53%)
CMYKcmyk(29.6%, 79.3%, 0%, 47.1%)
CIE-LABlab(26.77, 47.74, -46.03)
CIE-LCHlch(26.77, 66.31, 316.05°)
OKLaboklab(39.03% 0.1054 -0.1307)
OKLCHoklch(39.03% 0.168 308.9)
XYZxyz(9.5068, 5.0128, 23.3837)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C87 #44871C
analogous
#2A1C87 #5F1C87 #871C7A
triadic
#5F1C87 #875F1C #1C875F
tetradic
#5F1C87 #872A1C #44871C #1C7A87
square
#5F1C87 #872A1C #44871C #1C7A87
split-complementary
#5F1C87 #7A871C #1C872A
monochromatic
#180722 #3B1154 #5F1C87 #8327BA #A145D8

Accessibility & contrast

On white

10.49
#5F1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C87
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C87#FFFFFF#000000##FFFFFF
##5F1C871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#593751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1c87;
/* rgb */ color: rgb(95, 28, 135);
/* oklch */ color: oklch(39.0% 0.168 308.9);
Tailwind
colors: {
  custom: {
    50: '#9160ab',
    500: '#5f1c87',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c87;
$custom-light: #9160ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c87",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 277.57,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.16791,
    "h": 308.9
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#5F1C87
secondary
#71BA45
accent
#E93F7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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