#5A156B#5A156B

#5A156B is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.147 H 318.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5A156B
RGBrgb(90, 21, 107)
HSLhsl(288, 67%, 25%)
HSVhsv(288, 80%, 42%)
CMYKcmyk(15.9%, 80.4%, 0%, 58%)
CIE-LABlab(22.90, 43.27, -34.49)
CIE-LCHlch(22.90, 55.33, 321.44°)
OKLaboklab(35.46% 0.1102 -0.0969)
OKLCHoklch(35.46% 0.147 318.7)
XYZxyz(7.1381, 3.7719, 14.2591)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156B #266B15
analogous
#2F156B #5A156B #6B1551
triadic
#5A156B #6B5A15 #156B5A
tetradic
#5A156B #6B2F15 #266B15 #15516B
square
#5A156B #6B2F15 #266B15 #15516B
split-complementary
#5A156B #516B15 #156B2F
monochromatic
#16051A #2F0B38 #5A156B #851F9E #B029D1

Accessibility & contrast

On white

11.97
#5A156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A156B
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156B#FFFFFF#000000##FFFFFF
##5A156B1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#5A273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a156b;
/* rgb */ color: rgb(90, 21, 107);
/* oklch */ color: oklch(35.5% 0.147 318.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b96',
    500: '#5a156b',
    950: '#000000',
  },
}
SCSS
$custom: #5a156b;
$custom-light: #8c5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156b",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 288.14,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35459,
    "c": 0.14678,
    "h": 318.7
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#5A156B
secondary
#4FA23A
accent
#EA3E60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A156B

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

Preview Lab → · Contrast checker → · Palette generator →

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