#5E1B89#5E1B89

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

Color values

HEX#5E1B89
RGBrgb(94, 27, 137)
HSLhsl(277, 67%, 32%)
HSVhsv(277, 80%, 54%)
CMYKcmyk(31.4%, 80.3%, 0%, 46.3%)
CIE-LABlab(26.65, 48.39, -47.48)
CIE-LCHlch(26.65, 67.80, 315.54°)
OKLaboklab(38.96% 0.1044 -0.135)
OKLCHoklch(38.96% 0.171 307.7)
XYZxyz(9.5224, 4.9698, 24.1197)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B89 #46891B
analogous
#271B89 #5E1B89 #891B7D
triadic
#5E1B89 #895E1B #1B895E
tetradic
#5E1B89 #89271B #46891B #1B7D89
square
#5E1B89 #89271B #46891B #1B7D89
split-complementary
#5E1B89 #7D891B #1B8927
monochromatic
#180723 #3B1156 #5E1B89 #8125BC #A044DA

Accessibility & contrast

On white

10.53
#5E1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B89
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B89#FFFFFF#000000##FFFFFF
##5E1B891.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b89;
/* rgb */ color: rgb(94, 27, 137);
/* oklch */ color: oklch(39.0% 0.171 307.7);
Tailwind
colors: {
  custom: {
    50: '#9060ac',
    500: '#5e1b89',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b89;
$custom-light: #9060ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b89",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 276.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38959,
    "c": 0.17066,
    "h": 307.7
  },
  "luminance": 0.0497
}

Semantic roles & 50–950 ramp

primary
#5E1B89
secondary
#73BC44
accent
#EA3E81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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