#5E1B86#5E1B86

#5E1B86 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.168 H 308.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5E1B86
RGBrgb(94, 27, 134)
HSLhsl(278, 66%, 32%)
HSVhsv(278, 80%, 53%)
CMYKcmyk(29.9%, 79.9%, 0%, 47.5%)
CIE-LABlab(26.40, 47.71, -46.00)
CIE-LCHlch(26.40, 66.28, 316.04°)
OKLaboklab(38.71% 0.1051 -0.1306)
OKLCHoklch(38.71% 0.168 308.8)
XYZxyz(9.3102, 4.8849, 23.0021)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B86 #43861B
analogous
#291B86 #5E1B86 #861B79
triadic
#5E1B86 #865E1B #1B865E
tetradic
#5E1B86 #86291B #43861B #1B7986
square
#5E1B86 #86291B #43861B #1B7986
split-complementary
#5E1B86 #79861B #1B8629
monochromatic
#170620 #3A1153 #5E1B86 #8225B9 #A142D9

Accessibility & contrast

On white

10.62
#5E1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B86
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B86#FFFFFF#000000##FFFFFF
##5E1B861.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#583650
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1b86;
/* rgb */ color: rgb(94, 27, 134);
/* oklch */ color: oklch(38.7% 0.168 308.8);
Tailwind
colors: {
  custom: {
    50: '#9060aa',
    500: '#5e1b86',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b86;
$custom-light: #9060aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b86",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 277.57,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38712,
    "c": 0.16769,
    "h": 308.8
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#5E1B86
secondary
#70B944
accent
#E93E7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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