#5E1E87#5E1E87

#5E1E87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.165 H 308.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5E1E87
RGBrgb(94, 30, 135)
HSLhsl(277, 64%, 32%)
HSVhsv(277, 78%, 53%)
CMYKcmyk(30.4%, 77.8%, 0%, 47.1%)
CIE-LABlab(26.90, 46.75, -45.83)
CIE-LCHlch(26.90, 65.46, 315.57°)
OKLaboklab(39.08% 0.1022 -0.1301)
OKLCHoklch(39.08% 0.165 308.1)
XYZxyz(9.4526, 5.0576, 23.3952)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E87 #47871E
analogous
#291E87 #5E1E87 #871E7C
triadic
#5E1E87 #875E1E #1E875E
tetradic
#5E1E87 #87291E #47871E #1E7C87
square
#5E1E87 #87291E #47871E #1E7C87
split-complementary
#5E1E87 #7C871E #1E8729
monochromatic
#180823 #3B1355 #5E1E87 #8129B9 #9F49D7

Accessibility & contrast

On white

10.44
#5E1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E87
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E87#FFFFFF#000000##FFFFFF
##5E1E871.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#573851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1e87;
/* rgb */ color: rgb(94, 30, 135);
/* oklch */ color: oklch(39.1% 0.165 308.1);
Tailwind
colors: {
  custom: {
    50: '#9061ab',
    500: '#5e1e87',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e87;
$custom-light: #9061ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e87",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 276.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.16544,
    "h": 308.1
  },
  "luminance": 0.05057
}

Semantic roles & 50–950 ramp

primary
#5E1E87
secondary
#74B948
accent
#E74182
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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