#5E158F#5E158F

#5E158F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.182 H 306.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5E158F
RGBrgb(94, 21, 143)
HSLhsl(276, 74%, 32%)
HSVhsv(276, 85%, 56%)
CMYKcmyk(34.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(26.45, 51.83, -51.54)
CIE-LCHlch(26.45, 73.10, 315.16°)
OKLaboklab(38.98% 0.1074 -0.1469)
OKLCHoklch(38.98% 0.182 306.2)
XYZxyz(9.8411, 4.8993, 26.4085)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E158F #468F15
analogous
#21158F #5E158F #8F1583
triadic
#5E158F #8F5E15 #158F5E
tetradic
#5E158F #8F2115 #468F15 #15838F
square
#5E158F #8F2115 #468F15 #15838F
split-complementary
#5E158F #838F15 #158F21
monochromatic
#180524 #3B0D5A #5E158F #811DC4 #A03CE2

Accessibility & contrast

On white

10.61
#5E158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E158F
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E158F#FFFFFF#000000##FFFFFF
##5E158F1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#553754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e158f;
/* rgb */ color: rgb(94, 21, 143);
/* oklch */ color: oklch(39.0% 0.182 306.2);
Tailwind
colors: {
  custom: {
    50: '#915eb1',
    500: '#5e158f',
    950: '#000000',
  },
}
SCSS
$custom: #5e158f;
$custom-light: #915eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e158f",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 275.902,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38976,
    "c": 0.18193,
    "h": 306.2
  },
  "luminance": 0.04899
}

Semantic roles & 50–950 ramp

primary
#5E158F
secondary
#73C23E
accent
#F13782
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E158F

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

Preview Lab → · Contrast checker → · Palette generator →

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