#5E1E97#5E1E97

#5E1E97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.182 H 302.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5E1E97
RGBrgb(94, 30, 151)
HSLhsl(272, 67%, 35%)
HSVhsv(272, 80%, 59%)
CMYKcmyk(37.7%, 80.1%, 0%, 40.8%)
CIE-LABlab(28.23, 50.52, -53.57)
CIE-LCHlch(28.23, 73.64, 313.33°)
OKLaboklab(40.43% 0.0982 -0.1529)
OKLCHoklch(40.43% 0.182 302.7)
XYZxyz(10.6649, 5.5426, 29.7801)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E97 #57971E
analogous
#221E97 #5E1E97 #971E93
triadic
#5E1E97 #975E1E #1E975E
tetradic
#5E1E97 #97221E #57971E #1E9397
square
#5E1E97 #97221E #57971E #1E9397
split-complementary
#5E1E97 #93971E #1E9722
monochromatic
#1E0A31 #3E1464 #5E1E97 #7E28CA #9C53DD

Accessibility & contrast

On white

9.96
#5E1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E97
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E97#FFFFFF#000000##FFFFFF
##5E1E971.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#523F5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1e97;
/* rgb */ color: rgb(94, 30, 151);
/* oklch */ color: oklch(40.4% 0.182 302.7);
Tailwind
colors: {
  custom: {
    50: '#9262b7',
    500: '#5e1e97',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e97;
$custom-light: #9262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e97",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 271.736,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4043,
    "c": 0.18169,
    "h": 302.7
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#5E1E97
secondary
#85C051
accent
#EA3E8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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