#5A159E#5A159E

#5A159E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.196 H 299.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5A159E
RGBrgb(90, 21, 158)
HSLhsl(270, 77%, 35%)
HSVhsv(270, 87%, 62%)
CMYKcmyk(43%, 86.7%, 0%, 38%)
CIE-LABlab(27.24, 54.72, -59.50)
CIE-LCHlch(27.24, 80.83, 312.60°)
OKLaboklab(39.82% 0.096 -0.1703)
OKLCHoklch(39.82% 0.196 299.4)
XYZxyz(10.6546, 5.1785, 32.7793)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A159E #599E15
analogous
#16159E #5A159E #9E159D
triadic
#5A159E #9E5A15 #159E5A
tetradic
#5A159E #9E1615 #599E15 #159D9E
square
#5A159E #9E1615 #599E15 #159D9E
split-complementary
#5A159E #9D9E15 #159E16
monochromatic
#1C0732 #3B0E68 #5A159E #791CD4 #9747E7

Accessibility & contrast

On white

10.32
#5A159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5A159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A159E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A159E#FFFFFF#000000##FFFFFF
##5A159E1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a159e;
/* rgb */ color: rgb(90, 21, 158);
/* oklch */ color: oklch(39.8% 0.196 299.4);
Tailwind
colors: {
  custom: {
    50: '#905ebc',
    500: '#5a159e',
    950: '#000000',
  },
}
SCSS
$custom: #5a159e;
$custom-light: #905ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a159e",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 270.219,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3982,
    "c": 0.19555,
    "h": 299.4
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#5A159E
secondary
#87C747
accent
#F33593
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A159E

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

Preview Lab → · Contrast checker → · Palette generator →

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