#5A156E#5A156E

#5A156E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.150 H 317.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5A156E
RGBrgb(90, 21, 110)
HSLhsl(287, 68%, 26%)
HSVhsv(287, 81%, 43%)
CMYKcmyk(18.2%, 80.9%, 0%, 56.9%)
CIE-LABlab(23.12, 43.89, -36.08)
CIE-LCHlch(23.12, 56.82, 320.58°)
OKLaboklab(35.68% 0.1098 -0.1016)
OKLCHoklch(35.68% 0.15 317.2)
XYZxyz(7.2987, 3.8361, 15.1048)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156E #296E15
analogous
#2D156E #5A156E #6E1555
triadic
#5A156E #6E5A15 #156E5A
tetradic
#5A156E #6E2D15 #296E15 #15556E
square
#5A156E #6E2D15 #296E15 #15556E
split-complementary
#5A156E #556E15 #156E2D
monochromatic
#15051A #300B3B #5A156E #841FA1 #AE29D5

Accessibility & contrast

On white

11.88
#5A156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A156E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156E#FFFFFF#000000##FFFFFF
##5A156E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#17396C
Tritanopia (blue-blind)
#592941
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a156e;
/* rgb */ color: rgb(90, 21, 110);
/* oklch */ color: oklch(35.7% 0.150 317.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b98',
    500: '#5a156e',
    950: '#000000',
  },
}
SCSS
$custom: #5a156e;
$custom-light: #8c5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156e",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 286.517,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.14958,
    "h": 317.2
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#5A156E
secondary
#52A43A
accent
#EB3D64
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A156E

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

Preview Lab → · Contrast checker → · Palette generator →

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