#5E1786#5E1786

#5E1786 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.172 H 309.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5E1786
RGBrgb(94, 23, 134)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 53%)
CMYKcmyk(29.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(25.90, 49.16, -46.82)
CIE-LCHlch(25.90, 67.89, 316.40°)
OKLaboklab(38.36% 0.1085 -0.133)
OKLCHoklch(38.36% 0.172 309.2)
XYZxyz(9.2247, 4.7139, 22.9736)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1786 #3F8617
analogous
#261786 #5E1786 #861776
triadic
#5E1786 #865E17 #17865E
tetradic
#5E1786 #862617 #3F8617 #177686
square
#5E1786 #862617 #3F8617 #177686
split-complementary
#5E1786 #768617 #178626
monochromatic
#15051E #390E52 #5E1786 #8320BA #A23ADD

Accessibility & contrast

On white

10.81
#5E1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1786
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1786#FFFFFF#000000##FFFFFF
##5E17861.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#58344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1786;
/* rgb */ color: rgb(94, 23, 134);
/* oklch */ color: oklch(38.4% 0.172 309.2);
Tailwind
colors: {
  custom: {
    50: '#905eaa',
    500: '#5e1786',
    950: '#000000',
  },
}
SCSS
$custom: #5e1786;
$custom-light: #905eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1786",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 278.378,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38361,
    "c": 0.17164,
    "h": 309.2
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#5E1786
secondary
#6BBA3F
accent
#ED3A7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1786

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

Preview Lab → · Contrast checker → · Palette generator →

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