#5B15A0#5B15A0

#5B15A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.198 H 299.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5B15A0
RGBrgb(91, 21, 160)
HSLhsl(270, 77%, 35%)
HSVhsv(270, 87%, 63%)
CMYKcmyk(43.1%, 86.9%, 0%, 37.3%)
CIE-LABlab(27.57, 55.32, -60.17)
CIE-LCHlch(27.57, 81.73, 312.60°)
OKLaboklab(40.14% 0.0968 -0.1723)
OKLCHoklch(40.14% 0.198 299.3)
XYZxyz(10.9261, 5.2984, 33.6979)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B15A0 #5AA015
analogous
#1515A0 #5B15A0 #A0159F
triadic
#5B15A0 #A05B15 #15A05B
tetradic
#5B15A0 #A01515 #5AA015 #159FA0
square
#5B15A0 #A01515 #5AA015 #159FA0
split-complementary
#5B15A0 #9FA015 #15A015
monochromatic
#1D0734 #3C0E6A #5B15A0 #7A1CD6 #9848E7

Accessibility & contrast

On white

10.20
#5B15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B15A0
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B15A0#FFFFFF#000000##FFFFFF
##5B15A01.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#4A405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b15a0;
/* rgb */ color: rgb(91, 21, 160);
/* oklch */ color: oklch(40.1% 0.198 299.3);
Tailwind
colors: {
  custom: {
    50: '#915fbd',
    500: '#5b15a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b15a0;
$custom-light: #915fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b15a0",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 270.216,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40135,
    "c": 0.19763,
    "h": 299.3
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#5B15A0
secondary
#88C849
accent
#F33493
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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