#5A156F#5A156F

#5A156F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.151 H 316.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5A156F
RGBrgb(90, 21, 111)
HSLhsl(286, 68%, 26%)
HSVhsv(286, 81%, 44%)
CMYKcmyk(18.9%, 81.1%, 0%, 56.5%)
CIE-LABlab(23.20, 44.10, -36.61)
CIE-LCHlch(23.20, 57.32, 320.30°)
OKLaboklab(35.76% 0.1096 -0.1031)
OKLCHoklch(35.76% 0.151 316.7)
XYZxyz(7.3534, 3.8580, 15.3932)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156F #2A6F15
analogous
#2D156F #5A156F #6F1557
triadic
#5A156F #6F5A15 #156F5A
tetradic
#5A156F #6F2D15 #2A6F15 #15576F
square
#5A156F #6F2D15 #2A6F15 #15576F
split-complementary
#5A156F #576F15 #156F2D
monochromatic
#15051A #300B3C #5A156F #841FA2 #AD28D6

Accessibility & contrast

On white

11.85
#5A156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A156F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156F#FFFFFF#000000##FFFFFF
##5A156F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#592942
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a156f;
/* rgb */ color: rgb(90, 21, 111);
/* oklch */ color: oklch(35.8% 0.151 316.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b99',
    500: '#5a156f',
    950: '#000000',
  },
}
SCSS
$custom: #5a156f;
$custom-light: #8c5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156f",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 286,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.15051,
    "h": 316.7
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#5A156F
secondary
#53A53A
accent
#EB3D65
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A156F

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

Preview Lab → · Contrast checker → · Palette generator →

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