#5E1D9E#5E1D9E

#5E1D9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.190 H 300.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5E1D9E
RGBrgb(94, 29, 158)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(40.5%, 81.6%, 0%, 38%)
CIE-LABlab(28.71, 52.59, -57.05)
CIE-LCHlch(28.71, 77.59, 312.67°)
OKLaboklab(40.96% 0.0969 -0.1631)
OKLCHoklch(40.96% 0.19 300.7)
XYZxyz(11.2255, 5.7269, 32.8551)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D9E #5D9E1D
analogous
#1E1D9E #5E1D9E #9E1D9E
triadic
#5E1D9E #9E5E1D #1D9E5E
tetradic
#5E1D9E #9E1E1D #5D9E1D #1D9E9E
square
#5E1D9E #9E1E1D #5D9E1D #1D9E9E
split-complementary
#5E1D9E #9E9E1D #1D9E1E
monochromatic
#200A37 #3F146A #5E1D9E #7D26D2 #9B56E0

Accessibility & contrast

On white

9.79
#5E1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D9E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D9E#FFFFFF#000000##FFFFFF
##5E1D9E1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4F415E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e1d9e;
/* rgb */ color: rgb(94, 29, 158);
/* oklch */ color: oklch(41.0% 0.190 300.7);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5e1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d9e;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d9e",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 270.233,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40957,
    "c": 0.18971,
    "h": 300.7
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#5E1D9E
secondary
#8BC354
accent
#EC3C93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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