#5A1470#5A1470

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

Color values

HEX#5A1470
RGBrgb(90, 20, 112)
HSLhsl(286, 70%, 26%)
HSVhsv(286, 82%, 44%)
CMYKcmyk(19.6%, 82.1%, 0%, 56.1%)
CIE-LABlab(23.15, 44.67, -37.33)
CIE-LCHlch(23.15, 58.21, 320.11°)
OKLaboklab(35.75% 0.1103 -0.1053)
OKLCHoklch(35.75% 0.152 316.3)
XYZxyz(7.3908, 3.8441, 15.6788)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1470 #2A7014
analogous
#2C1470 #5A1470 #701458
triadic
#5A1470 #705A14 #14705A
tetradic
#5A1470 #702C14 #2A7014 #145870
square
#5A1470 #702C14 #2A7014 #145870
split-complementary
#5A1470 #587014 #14702C
monochromatic
#15051A #300B3C #5A1470 #841DA4 #AD27D8

Accessibility & contrast

On white

11.87
#5A1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1470
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1470#FFFFFF#000000##FFFFFF
##5A14701.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#13396E
Tritanopia (blue-blind)
#592942
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1470;
/* rgb */ color: rgb(90, 20, 112);
/* oklch */ color: oklch(35.8% 0.152 316.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b9a',
    500: '#5a1470',
    950: '#000000',
  },
}
SCSS
$custom: #5a1470;
$custom-light: #8c5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1470",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 285.652,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.15249,
    "h": 316.3
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#5A1470
secondary
#53A639
accent
#ED3B66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1470

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

Preview Lab → · Contrast checker → · Palette generator →

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