#5E1E8B#5E1E8B

#5E1E8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.170 H 306.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5E1E8B
RGBrgb(94, 30, 139)
HSLhsl(275, 64%, 33%)
HSVhsv(275, 78%, 55%)
CMYKcmyk(32.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(27.22, 47.68, -47.80)
CIE-LCHlch(27.22, 67.51, 314.93°)
OKLaboklab(39.41% 0.1013 -0.1359)
OKLCHoklch(39.41% 0.17 306.7)
XYZxyz(9.7396, 5.1724, 24.9064)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E8B #4B8B1E
analogous
#271E8B #5E1E8B #8B1E81
triadic
#5E1E8B #8B5E1E #1E8B5E
tetradic
#5E1E8B #8B271E #4B8B1E #1E818B
square
#5E1E8B #8B271E #4B8B1E #1E818B
split-complementary
#5E1E8B #818B1E #1E8B27
monochromatic
#1A0826 #3C1359 #5E1E8B #8029BD #9E4BD8

Accessibility & contrast

On white

10.32
#5E1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E8B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E8B#FFFFFF#000000##FFFFFF
##5E1E8B1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#563954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1e8b;
/* rgb */ color: rgb(94, 30, 139);
/* oklch */ color: oklch(39.4% 0.170 306.7);
Tailwind
colors: {
  custom: {
    50: '#9061ae',
    500: '#5e1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e8b;
$custom-light: #9061ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e8b",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 275.229,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39411,
    "c": 0.16951,
    "h": 306.7
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#5E1E8B
secondary
#79BB4A
accent
#E74085
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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