#5E158C#5E158C

#5E158C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.179 H 307.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5E158C
RGBrgb(94, 21, 140)
HSLhsl(277, 74%, 32%)
HSVhsv(277, 85%, 55%)
CMYKcmyk(32.9%, 85%, 0%, 45.1%)
CIE-LABlab(26.19, 51.16, -50.11)
CIE-LCHlch(26.19, 71.61, 315.59°)
OKLaboklab(38.71% 0.1083 -0.1426)
OKLCHoklch(38.71% 0.179 307.2)
XYZxyz(9.6169, 4.8096, 25.2276)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E158C #438C15
analogous
#23158C #5E158C #8C157F
triadic
#5E158C #8C5E15 #158C5E
tetradic
#5E158C #8C2315 #438C15 #157F8C
square
#5E158C #8C2315 #438C15 #157F8C
split-complementary
#5E158C #7F8C15 #158C23
monochromatic
#170522 #3A0D57 #5E158C #821DC1 #A13AE1

Accessibility & contrast

On white

10.70
#5E158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E158C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E158C#FFFFFF#000000##FFFFFF
##5E158C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#563652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e158c;
/* rgb */ color: rgb(94, 21, 140);
/* oklch */ color: oklch(38.7% 0.179 307.2);
Tailwind
colors: {
  custom: {
    50: '#915eae',
    500: '#5e158c',
    950: '#000000',
  },
}
SCSS
$custom: #5e158c;
$custom-light: #915eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e158c",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 276.807,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38715,
    "c": 0.1791,
    "h": 307.2
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#5E158C
secondary
#70C03D
accent
#F1377F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E158C

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

Preview Lab → · Contrast checker → · Palette generator →

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