#5F1D89#5F1D89

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

Color values

HEX#5F1D89
RGBrgb(95, 29, 137)
HSLhsl(277, 65%, 33%)
HSVhsv(277, 79%, 54%)
CMYKcmyk(30.7%, 78.8%, 0%, 46.3%)
CIE-LABlab(27.07, 47.80, -46.79)
CIE-LCHlch(27.07, 66.89, 315.61°)
OKLaboklab(39.28% 0.1041 -0.1329)
OKLCHoklch(39.28% 0.169 308.1)
XYZxyz(9.6731, 5.1179, 24.1403)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D89 #47891D
analogous
#291D89 #5F1D89 #891D7D
triadic
#5F1D89 #895F1D #1D895F
tetradic
#5F1D89 #89291D #47891D #1D7D89
square
#5F1D89 #89291D #47891D #1D7D89
split-complementary
#5F1D89 #7D891D #1D8929
monochromatic
#190824 #3C1256 #5F1D89 #8228BC #A048D8

Accessibility & contrast

On white

10.38
#5F1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1D89
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D89#FFFFFF#000000##FFFFFF
##5F1D891.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#583852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1d89;
/* rgb */ color: rgb(95, 29, 137);
/* oklch */ color: oklch(39.3% 0.169 308.1);
Tailwind
colors: {
  custom: {
    50: '#9161ac',
    500: '#5f1d89',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d89;
$custom-light: #9161ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d89",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 276.667,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39285,
    "c": 0.16884,
    "h": 308.1
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#5F1D89
secondary
#74BA47
accent
#E84081
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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