#5F1B87#5F1B87

#5F1B87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.169 H 309.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5F1B87
RGBrgb(95, 27, 135)
HSLhsl(278, 67%, 32%)
HSVhsv(278, 80%, 53%)
CMYKcmyk(29.6%, 80%, 0%, 47.1%)
CIE-LABlab(26.64, 48.12, -46.24)
CIE-LCHlch(26.64, 66.74, 316.14°)
OKLaboklab(38.93% 0.1063 -0.1313)
OKLCHoklch(38.93% 0.169 309)
XYZxyz(9.4835, 4.9662, 23.3760)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B87 #43871B
analogous
#291B87 #5F1B87 #871B79
triadic
#5F1B87 #875F1B #1B875F
tetradic
#5F1B87 #87291B #43871B #1B7987
square
#5F1B87 #87291B #43871B #1B7987
split-complementary
#5F1B87 #79871B #1B8729
monochromatic
#170721 #3B1154 #5F1B87 #8325BA #A243D9

Accessibility & contrast

On white

10.54
#5F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B87
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B87#FFFFFF#000000##FFFFFF
##5F1B871.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1b87;
/* rgb */ color: rgb(95, 27, 135);
/* oklch */ color: oklch(38.9% 0.169 309.0);
Tailwind
colors: {
  custom: {
    50: '#9160ab',
    500: '#5f1b87',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b87;
$custom-light: #9160ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b87",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 277.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38933,
    "c": 0.16896,
    "h": 309
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#5F1B87
secondary
#70BA44
accent
#EA3E7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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