#5E159E#5E159E

#5E159E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.196 H 301.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5E159E
RGBrgb(94, 21, 158)
HSLhsl(272, 77%, 35%)
HSVhsv(272, 87%, 62%)
CMYKcmyk(40.5%, 86.7%, 0%, 38%)
CIE-LABlab(27.80, 55.25, -58.55)
CIE-LCHlch(27.80, 80.50, 313.34°)
OKLaboklab(40.33% 0.1022 -0.1674)
OKLCHoklch(40.33% 0.196 301.4)
XYZxyz(11.0543, 5.3846, 32.7981)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E159E #559E15
analogous
#1A159E #5E159E #9E1599
triadic
#5E159E #9E5E15 #159E5E
tetradic
#5E159E #9E1A15 #559E15 #15999E
square
#5E159E #9E1A15 #559E15 #15999E
split-complementary
#5E159E #999E15 #159E1A
monochromatic
#1E0732 #3E0E68 #5E159E #7E1CD4 #9C47E7

Accessibility & contrast

On white

10.11
#5E159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E159E
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E159E#FFFFFF#000000##FFFFFF
##5E159E1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4F3E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e159e;
/* rgb */ color: rgb(94, 21, 158);
/* oklch */ color: oklch(40.3% 0.196 301.4);
Tailwind
colors: {
  custom: {
    50: '#935fbc',
    500: '#5e159e',
    950: '#000000',
  },
}
SCSS
$custom: #5e159e;
$custom-light: #935fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e159e",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 271.971,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40329,
    "c": 0.19616,
    "h": 301.4
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#5E159E
secondary
#83C747
accent
#F3358E
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5E159E

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

Preview Lab → · Contrast checker → · Palette generator →

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