#5A1E97#5A1E97

#5A1E97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.181 H 300.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5A1E97
RGBrgb(90, 30, 151)
HSLhsl(270, 67%, 35%)
HSVhsv(270, 80%, 59%)
CMYKcmyk(40.4%, 80.1%, 0%, 40.8%)
CIE-LABlab(27.67, 49.87, -54.50)
CIE-LCHlch(27.67, 73.87, 312.46°)
OKLaboklab(39.92% 0.0921 -0.1558)
OKLCHoklch(39.92% 0.181 300.6)
XYZxyz(10.2652, 5.3365, 29.7614)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1E97 #5B971E
analogous
#1E1E97 #5A1E97 #961E97
triadic
#5A1E97 #975A1E #1E975A
tetradic
#5A1E97 #971E1E #5B971E #1E9796
square
#5A1E97 #971E1E #5B971E #1E9796
split-complementary
#5A1E97 #97961E #1E971E
monochromatic
#1D0A31 #3C1464 #5A1E97 #7828CA #9753DD

Accessibility & contrast

On white

10.16
#5A1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1E97
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1E97#FFFFFF#000000##FFFFFF
##5A1E971.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#4C3F5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1e97;
/* rgb */ color: rgb(90, 30, 151);
/* oklch */ color: oklch(39.9% 0.181 300.6);
Tailwind
colors: {
  custom: {
    50: '#8f62b7',
    500: '#5a1e97',
    950: '#000000',
  },
}
SCSS
$custom: #5a1e97;
$custom-light: #8f62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1e97",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 269.752,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39923,
    "c": 0.18098,
    "h": 300.6
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#5A1E97
secondary
#89C051
accent
#EA3E95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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