#5E1E9B#5E1E9B

#5E1E9B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.186 H 301.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5E1E9B
RGBrgb(94, 30, 155)
HSLhsl(271, 68%, 36%)
HSVhsv(271, 81%, 61%)
CMYKcmyk(39.4%, 80.6%, 0%, 39.2%)
CIE-LABlab(28.58, 51.49, -55.45)
CIE-LCHlch(28.58, 75.67, 312.88°)
OKLaboklab(40.78% 0.097 -0.1584)
OKLCHoklch(40.78% 0.186 301.5)
XYZxyz(10.9953, 5.6747, 31.5200)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E9B #5B9B1E
analogous
#201E9B #5E1E9B #9B1E9A
triadic
#5E1E9B #9B5E1E #1E9B5E
tetradic
#5E1E9B #9B201E #5B9B1E #1E9A9B
square
#5E1E9B #9B201E #5B9B1E #1E9A9B
split-complementary
#5E1E9B #9A9B1E #1E9B20
monochromatic
#200A34 #3F1468 #5E1E9B #7D28CE #9B55DE

Accessibility & contrast

On white

9.84
#5E1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E9B
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E9B#FFFFFF#000000##FFFFFF
##5E1E9B1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#50405D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1e9b;
/* rgb */ color: rgb(94, 30, 155);
/* oklch */ color: oklch(40.8% 0.186 301.5);
Tailwind
colors: {
  custom: {
    50: '#9262b9',
    500: '#5e1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e9b;
$custom-light: #9262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e9b",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 270.72,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.18575,
    "h": 301.5
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#5E1E9B
secondary
#89C253
accent
#EA3D92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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