#5E158D#5E158D

#5E158D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.180 H 306.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5E158D
RGBrgb(94, 21, 141)
HSLhsl(277, 74%, 32%)
HSVhsv(277, 85%, 55%)
CMYKcmyk(33.3%, 85.1%, 0%, 44.7%)
CIE-LABlab(26.27, 51.38, -50.59)
CIE-LCHlch(26.27, 72.10, 315.45°)
OKLaboklab(38.8% 0.108 -0.1441)
OKLCHoklch(38.8% 0.18 306.9)
XYZxyz(9.6909, 4.8392, 25.6177)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E158D #448D15
analogous
#22158D #5E158D #8D1580
triadic
#5E158D #8D5E15 #158D5E
tetradic
#5E158D #8D2215 #448D15 #15808D
square
#5E158D #8D2215 #448D15 #15808D
split-complementary
#5E158D #808D15 #158D22
monochromatic
#170522 #3A0D58 #5E158D #821DC2 #A03BE2

Accessibility & contrast

On white

10.67
#5E158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E158D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E158D#FFFFFF#000000##FFFFFF
##5E158D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#563653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e158d;
/* rgb */ color: rgb(94, 21, 141);
/* oklch */ color: oklch(38.8% 0.180 306.9);
Tailwind
colors: {
  custom: {
    50: '#915eaf',
    500: '#5e158d',
    950: '#000000',
  },
}
SCSS
$custom: #5e158d;
$custom-light: #915eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e158d",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 276.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.18004,
    "h": 306.9
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#5E158D
secondary
#71C13D
accent
#F13780
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E158D

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

Preview Lab → · Contrast checker → · Palette generator →

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