#5E1E82#5E1E82

#5E1E82 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.160 H 310.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5E1E82
RGBrgb(94, 30, 130)
HSLhsl(278, 63%, 31%)
HSVhsv(278, 77%, 51%)
CMYKcmyk(27.7%, 76.9%, 0%, 49%)
CIE-LABlab(26.51, 45.60, -43.33)
CIE-LCHlch(26.51, 62.90, 316.46°)
OKLaboklab(38.68% 0.1032 -0.1228)
OKLCHoklch(38.68% 0.16 310)
XYZxyz(9.1088, 4.9201, 21.5846)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E82 #42821E
analogous
#2C1E82 #5E1E82 #821E74
triadic
#5E1E82 #825E1E #1E825E
tetradic
#5E1E82 #822C1E #42821E #1E7482
square
#5E1E82 #822C1E #42821E #1E7482
split-complementary
#5E1E82 #74821E #1E822C
monochromatic
#16071F #3A1350 #5E1E82 #8229B4 #A146D4

Accessibility & contrast

On white

10.58
#5E1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E82
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E82#FFFFFF#000000##FFFFFF
##5E1E821.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#054080
Tritanopia (blue-blind)
#59364F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1e82;
/* rgb */ color: rgb(94, 30, 130);
/* oklch */ color: oklch(38.7% 0.160 310.0);
Tailwind
colors: {
  custom: {
    50: '#9061a7',
    500: '#5e1e82',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e82;
$custom-light: #9061a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e82",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 278.4,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38684,
    "c": 0.16039,
    "h": 310
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#5E1E82
secondary
#6EB547
accent
#E6427D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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