#5A1E95#5A1E95

#5A1E95 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 301.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5A1E95
RGBrgb(90, 30, 149)
HSLhsl(270, 66%, 35%)
HSVhsv(270, 80%, 58%)
CMYKcmyk(39.6%, 79.9%, 0%, 41.6%)
CIE-LABlab(27.50, 49.38, -53.56)
CIE-LCHlch(27.50, 72.84, 312.67°)
OKLaboklab(39.75% 0.0927 -0.153)
OKLCHoklch(39.75% 0.179 301.2)
XYZxyz(10.1042, 5.2721, 28.9132)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1E95 #59951E
analogous
#1F1E95 #5A1E95 #951E94
triadic
#5A1E95 #955A1E #1E955A
tetradic
#5A1E95 #951F1E #59951E #1E9495
square
#5A1E95 #951F1E #59951E #1E9495
split-complementary
#5A1E95 #94951E #1E951F
monochromatic
#1C092F #3B1462 #5A1E95 #7928C8 #9751DC

Accessibility & contrast

On white

10.22
#5A1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1E95
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1E95#FFFFFF#000000##FFFFFF
##5A1E951.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#4D3E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1e95;
/* rgb */ color: rgb(90, 30, 149);
/* oklch */ color: oklch(39.7% 0.179 301.2);
Tailwind
colors: {
  custom: {
    50: '#8f61b5',
    500: '#5a1e95',
    950: '#000000',
  },
}
SCSS
$custom: #5a1e95;
$custom-light: #8f61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1e95",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 270.252,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39746,
    "c": 0.17891,
    "h": 301.2
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#5A1E95
secondary
#87BF50
accent
#E93E93
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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