#5A1970#5A1970

#5A1970 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.147 H 315.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5A1970
RGBrgb(90, 25, 112)
HSLhsl(285, 64%, 27%)
HSVhsv(285, 78%, 44%)
CMYKcmyk(19.6%, 77.7%, 0%, 56.1%)
CIE-LABlab(23.80, 42.79, -36.28)
CIE-LCHlch(23.80, 56.10, 319.71°)
OKLaboklab(36.21% 0.1056 -0.1022)
OKLCHoklch(36.21% 0.147 315.9)
XYZxyz(7.4883, 4.0391, 15.7113)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1970 #2F7019
analogous
#2F1970 #5A1970 #70195B
triadic
#5A1970 #705A19 #19705A
tetradic
#5A1970 #702F19 #2F7019 #195B70
square
#5A1970 #702F19 #2F7019 #195B70
split-complementary
#5A1970 #5B7019 #19702F
monochromatic
#140619 #320E3E #5A1970 #8224A2 #A932D1

Accessibility & contrast

On white

11.62
#5A1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1970
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1970#FFFFFF#000000##FFFFFF
##5A19701.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#183A6E
Tritanopia (blue-blind)
#582C43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1970;
/* rgb */ color: rgb(90, 25, 112);
/* oklch */ color: oklch(36.2% 0.147 315.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d9a',
    500: '#5a1970',
    950: '#000000',
  },
}
SCSS
$custom: #5a1970;
$custom-light: #8c5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1970",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 284.828,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3621,
    "c": 0.14696,
    "h": 315.9
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#5A1970
secondary
#59A540
accent
#E7416B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1970

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

Preview Lab → · Contrast checker → · Palette generator →

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