#5A1570#5A1570

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

Color values

HEX#5A1570
RGBrgb(90, 21, 112)
HSLhsl(285, 68%, 26%)
HSVhsv(285, 81%, 44%)
CMYKcmyk(19.6%, 81.2%, 0%, 56.1%)
CIE-LABlab(23.27, 44.31, -37.13)
CIE-LCHlch(23.27, 57.82, 320.04°)
OKLaboklab(35.84% 0.1095 -0.1047)
OKLCHoklch(35.84% 0.151 316.3)
XYZxyz(7.4088, 3.8801, 15.6848)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1570 #2B7015
analogous
#2D1570 #5A1570 #701558
triadic
#5A1570 #705A15 #15705A
tetradic
#5A1570 #702D15 #2B7015 #155870
square
#5A1570 #702D15 #2B7015 #155870
split-complementary
#5A1570 #587015 #15702D
monochromatic
#15051A #310B3C #5A1570 #831FA4 #AD29D7

Accessibility & contrast

On white

11.82
#5A1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1570
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1570#FFFFFF#000000##FFFFFF
##5A15701.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#14396E
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1570;
/* rgb */ color: rgb(90, 21, 112);
/* oklch */ color: oklch(35.8% 0.151 316.3);
Tailwind
colors: {
  custom: {
    50: '#8c5c9a',
    500: '#5a1570',
    950: '#000000',
  },
}
SCSS
$custom: #5a1570;
$custom-light: #8c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1570",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 285.495,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35836,
    "c": 0.15145,
    "h": 316.3
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#5A1570
secondary
#55A63B
accent
#EB3D67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1570

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

Preview Lab → · Contrast checker → · Palette generator →

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