#5E1E8D#5E1E8D

#5E1E8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.172 H 306.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5E1E8D
RGBrgb(94, 30, 141)
HSLhsl(275, 65%, 34%)
HSVhsv(275, 79%, 55%)
CMYKcmyk(33.3%, 78.7%, 0%, 44.7%)
CIE-LABlab(27.38, 48.15, -48.77)
CIE-LCHlch(27.38, 68.54, 314.63°)
OKLaboklab(39.58% 0.1008 -0.1388)
OKLCHoklch(39.58% 0.172 306)
XYZxyz(9.8870, 5.2314, 25.6830)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E8D #4D8D1E
analogous
#271E8D #5E1E8D #8D1E84
triadic
#5E1E8D #8D5E1E #1E8D5E
tetradic
#5E1E8D #8D271E #4D8D1E #1E848D
square
#5E1E8D #8D271E #4D8D1E #1E848D
split-complementary
#5E1E8D #848D1E #1E8D27
monochromatic
#1B0928 #3C135B #5E1E8D #8029BF #9D4CD9

Accessibility & contrast

On white

10.26
#5E1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E8D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E8D#FFFFFF#000000##FFFFFF
##5E1E8D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#553A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1e8d;
/* rgb */ color: rgb(94, 30, 141);
/* oklch */ color: oklch(39.6% 0.172 306.0);
Tailwind
colors: {
  custom: {
    50: '#9162af',
    500: '#5e1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e8d;
$custom-light: #9162af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e8d",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 274.595,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39577,
    "c": 0.17153,
    "h": 306
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#5E1E8D
secondary
#7BBC4B
accent
#E84087
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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