#5E1C86#5E1C86

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

Color values

HEX#5E1C86
RGBrgb(94, 28, 134)
HSLhsl(277, 65%, 32%)
HSVhsv(277, 79%, 53%)
CMYKcmyk(29.9%, 79.1%, 0%, 47.5%)
CIE-LABlab(26.54, 47.32, -45.78)
CIE-LCHlch(26.54, 65.84, 315.94°)
OKLaboklab(38.81% 0.1042 -0.13)
OKLCHoklch(38.81% 0.167 308.7)
XYZxyz(9.3335, 4.9316, 23.0098)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C86 #44861C
analogous
#291C86 #5E1C86 #861C79
triadic
#5E1C86 #865E1C #1C865E
tetradic
#5E1C86 #86291C #44861C #1C7986
square
#5E1C86 #86291C #44861C #1C7986
split-complementary
#5E1C86 #79861C #1C8629
monochromatic
#170721 #3A1153 #5E1C86 #8227B9 #A044D8

Accessibility & contrast

On white

10.57
#5E1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1C86
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C86#FFFFFF#000000##FFFFFF
##5E1C861.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1c86;
/* rgb */ color: rgb(94, 28, 134);
/* oklch */ color: oklch(38.8% 0.167 308.7);
Tailwind
colors: {
  custom: {
    50: '#9060aa',
    500: '#5e1c86',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c86;
$custom-light: #9060aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c86",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 277.358,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38806,
    "c": 0.16663,
    "h": 308.7
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#5E1C86
secondary
#71B945
accent
#E83F7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1C86

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

Preview Lab → · Contrast checker → · Palette generator →

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