#5A1E96#5A1E96

#5A1E96 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.180 H 300.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5A1E96
RGBrgb(90, 30, 150)
HSLhsl(270, 67%, 35%)
HSVhsv(270, 80%, 59%)
CMYKcmyk(40%, 80%, 0%, 41.2%)
CIE-LABlab(27.58, 49.62, -54.03)
CIE-LCHlch(27.58, 73.36, 312.57°)
OKLaboklab(39.84% 0.0924 -0.1544)
OKLCHoklch(39.84% 0.18 300.9)
XYZxyz(10.1844, 5.3041, 29.3355)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1E96 #5A961E
analogous
#1E1E96 #5A1E96 #961E96
triadic
#5A1E96 #965A1E #1E965A
tetradic
#5A1E96 #961E1E #5A961E #1E9696
square
#5A1E96 #961E1E #5A961E #1E9696
split-complementary
#5A1E96 #96961E #1E961E
monochromatic
#1D0A30 #3B1463 #5A1E96 #7928C9 #9752DC

Accessibility & contrast

On white

10.19
#5A1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1E96
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1E96#FFFFFF#000000##FFFFFF
##5A1E961.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#4C3F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1e96;
/* rgb */ color: rgb(90, 30, 150);
/* oklch */ color: oklch(39.8% 0.180 300.9);
Tailwind
colors: {
  custom: {
    50: '#8f62b6',
    500: '#5a1e96',
    950: '#000000',
  },
}
SCSS
$custom: #5a1e96;
$custom-light: #8f62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1e96",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.17994,
    "h": 300.9
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#5A1E96
secondary
#88BF50
accent
#EA3E94
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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