#5A15A0#5A15A0

#5A15A0 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 40.0% C 0.197 H 298.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5A15A0
RGBrgb(90, 21, 160)
HSLhsl(270, 77%, 35%)
HSVhsv(270, 87%, 63%)
CMYKcmyk(43.7%, 86.9%, 0%, 37.3%)
CIE-LABlab(27.43, 55.19, -60.40)
CIE-LCHlch(27.43, 81.82, 312.42°)
OKLaboklab(40.01% 0.0953 -0.173)
OKLCHoklch(40.01% 0.197 298.8)
XYZxyz(10.8281, 5.2479, 33.6933)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A15A0 #5BA015
analogous
#1515A0 #5A15A0 #9F15A0
triadic
#5A15A0 #A05A15 #15A05A
tetradic
#5A15A0 #A01515 #5BA015 #15A09F
square
#5A15A0 #A01515 #5BA015 #15A09F
split-complementary
#5A15A0 #A09F15 #15A015
monochromatic
#1D0734 #3C0E6A #5A15A0 #781CD6 #9748E7

Accessibility & contrast

On white

10.25
#5A15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A15A0
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A15A0#FFFFFF#000000##FFFFFF
##5A15A01.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#48405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a15a0;
/* rgb */ color: rgb(90, 21, 160);
/* oklch */ color: oklch(40.0% 0.197 298.8);
Tailwind
colors: {
  custom: {
    50: '#905fbd',
    500: '#5a15a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a15a0;
$custom-light: #905fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a15a0",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 269.784,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.19749,
    "h": 298.8
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#5A15A0
secondary
#89C849
accent
#F33495
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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