#5D1B89#5D1B89

#5D1B89 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.170 H 307.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5D1B89
RGBrgb(93, 27, 137)
HSLhsl(276, 67%, 32%)
HSVhsv(276, 80%, 54%)
CMYKcmyk(32.1%, 80.3%, 0%, 46.3%)
CIE-LABlab(26.50, 48.21, -47.73)
CIE-LCHlch(26.50, 67.84, 315.29°)
OKLaboklab(38.82% 0.103 -0.1358)
OKLCHoklch(38.82% 0.17 307.2)
XYZxyz(9.4205, 4.9173, 24.1149)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B89 #47891B
analogous
#261B89 #5D1B89 #891B7E
triadic
#5D1B89 #895D1B #1B895D
tetradic
#5D1B89 #89261B #47891B #1B7E89
square
#5D1B89 #89261B #47891B #1B7E89
split-complementary
#5D1B89 #7E891B #1B8926
monochromatic
#180723 #3A1156 #5D1B89 #8025BC #9E44DA

Accessibility & contrast

On white

10.59
#5D1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B89
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B89#FFFFFF#000000##FFFFFF
##5D1B891.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#553752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1b89;
/* rgb */ color: rgb(93, 27, 137);
/* oklch */ color: oklch(38.8% 0.170 307.2);
Tailwind
colors: {
  custom: {
    50: '#9060ac',
    500: '#5d1b89',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b89;
$custom-light: #9060ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b89",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 276,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.17039,
    "h": 307.2
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#5D1B89
secondary
#74BC44
accent
#EA3E83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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