#5E1E9D#5E1E9D

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

Color values

HEX#5E1E9D
RGBrgb(94, 30, 157)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 62%)
CMYKcmyk(40.1%, 80.9%, 0%, 38.4%)
CIE-LABlab(28.75, 51.97, -56.38)
CIE-LCHlch(28.75, 76.68, 312.67°)
OKLaboklab(40.96% 0.0964 -0.1611)
OKLCHoklch(40.96% 0.188 300.9)
XYZxyz(11.1647, 5.7425, 32.4120)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E9D #5D9D1E
analogous
#1F1E9D #5E1E9D #9D1E9D
triadic
#5E1E9D #9D5E1E #1E9D5E
tetradic
#5E1E9D #9D1F1E #5D9D1E #1E9D9D
square
#5E1E9D #9D1F1E #5D9D1E #1E9D9D
split-complementary
#5E1E9D #9D9D1E #1E9D1F
monochromatic
#200A36 #3F146A #5E1E9D #7D28D0 #9B57DF

Accessibility & contrast

On white

9.77
#5E1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1E9D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E9D#FFFFFF#000000##FFFFFF
##5E1E9D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#50415E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e1e9d;
/* rgb */ color: rgb(94, 30, 157);
/* oklch */ color: oklch(41.0% 0.188 300.9);
Tailwind
colors: {
  custom: {
    50: '#9262bb',
    500: '#5e1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e9d;
$custom-light: #9262bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e9d",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 270.236,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40958,
    "c": 0.18778,
    "h": 300.9
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#5E1E9D
secondary
#8BC254
accent
#EB3D93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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