#5A156D#5A156D

#5A156D is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.149 H 317.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5A156D
RGBrgb(90, 21, 109)
HSLhsl(287, 68%, 25%)
HSVhsv(287, 81%, 43%)
CMYKcmyk(17.4%, 80.7%, 0%, 57.3%)
CIE-LABlab(23.05, 43.68, -35.55)
CIE-LCHlch(23.05, 56.32, 320.86°)
OKLaboklab(35.61% 0.1099 -0.1)
OKLCHoklch(35.61% 0.149 317.7)
XYZxyz(7.2445, 3.8144, 14.8197)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156D #286D15
analogous
#2E156D #5A156D #6D1554
triadic
#5A156D #6D5A15 #156D5A
tetradic
#5A156D #6D2E15 #286D15 #15546D
square
#5A156D #6D2E15 #286D15 #15546D
split-complementary
#5A156D #546D15 #156D2E
monochromatic
#15051A #300B3A #5A156D #841FA0 #AF29D4

Accessibility & contrast

On white

11.91
#5A156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A156D
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156D#FFFFFF#000000##FFFFFF
##5A156D1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#18396B
Tritanopia (blue-blind)
#592841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a156d;
/* rgb */ color: rgb(90, 21, 109);
/* oklch */ color: oklch(35.6% 0.149 317.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b97',
    500: '#5a156d',
    950: '#000000',
  },
}
SCSS
$custom: #5a156d;
$custom-light: #8c5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156d",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 287.045,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35608,
    "c": 0.14864,
    "h": 317.7
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#5A156D
secondary
#51A33A
accent
#EB3D63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A156D

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

Preview Lab → · Contrast checker → · Palette generator →

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