#5A1372#5A1372

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

Color values

HEX#5A1372
RGBrgb(90, 19, 114)
HSLhsl(285, 71%, 26%)
HSVhsv(285, 83%, 45%)
CMYKcmyk(21.1%, 83.3%, 0%, 55.3%)
CIE-LABlab(23.18, 45.43, -38.56)
CIE-LCHlch(23.18, 59.59, 319.67°)
OKLaboklab(35.82% 0.1108 -0.1089)
OKLCHoklch(35.82% 0.155 315.5)
XYZxyz(7.4861, 3.8546, 16.2660)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1372 #2B7213
analogous
#2A1372 #5A1372 #72135A
triadic
#5A1372 #725A13 #13725A
tetradic
#5A1372 #722A13 #2B7213 #135A72
square
#5A1372 #722A13 #2B7213 #135A72
split-complementary
#5A1372 #5A7213 #13722A
monochromatic
#15041A #310A3E #5A1372 #831CA6 #AD25DB

Accessibility & contrast

On white

11.86
#5A1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1372
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1372#FFFFFF#000000##FFFFFF
##5A13721.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#0F3970
Tritanopia (blue-blind)
#582A43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1372;
/* rgb */ color: rgb(90, 19, 114);
/* oklch */ color: oklch(35.8% 0.155 315.5);
Tailwind
colors: {
  custom: {
    50: '#8c5b9b',
    500: '#5a1372',
    950: '#000000',
  },
}
SCSS
$custom: #5a1372;
$custom-light: #8c5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1372",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 284.842,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.15534,
    "h": 315.5
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#5A1372
secondary
#55A938
accent
#EE3A67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1372

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

Preview Lab → · Contrast checker → · Palette generator →

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