#5A1972#5A1972

#5A1972 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.149 H 315.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5A1972
RGBrgb(90, 25, 114)
HSLhsl(284, 64%, 27%)
HSVhsv(284, 78%, 45%)
CMYKcmyk(21.1%, 78.1%, 0%, 55.3%)
CIE-LABlab(23.95, 43.23, -37.33)
CIE-LCHlch(23.95, 57.12, 319.19°)
OKLaboklab(36.36% 0.1053 -0.1053)
OKLCHoklch(36.36% 0.149 315)
XYZxyz(7.6008, 4.0841, 16.3043)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1972 #317219
analogous
#2D1972 #5A1972 #72195E
triadic
#5A1972 #725A19 #19725A
tetradic
#5A1972 #722D19 #317219 #195E72
square
#5A1972 #722D19 #317219 #195E72
split-complementary
#5A1972 #5E7219 #19722D
monochromatic
#140619 #320E40 #5A1972 #8224A4 #A733D2

Accessibility & contrast

On white

11.56
#5A1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1972
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1972#FFFFFF#000000##FFFFFF
##5A19721.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#153B70
Tritanopia (blue-blind)
#582D44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1972;
/* rgb */ color: rgb(90, 25, 114);
/* oklch */ color: oklch(36.4% 0.149 315.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d9b',
    500: '#5a1972',
    950: '#000000',
  },
}
SCSS
$custom: #5a1972;
$custom-light: #8c5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1972",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 283.82,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36361,
    "c": 0.14891,
    "h": 315
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#5A1972
secondary
#5CA740
accent
#E7416E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1972

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

Preview Lab → · Contrast checker → · Palette generator →

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