#5A1973#5A1973

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

Color values

HEX#5A1973
RGBrgb(90, 25, 115)
HSLhsl(283, 64%, 27%)
HSVhsv(283, 78%, 45%)
CMYKcmyk(21.7%, 78.3%, 0%, 54.9%)
CIE-LABlab(24.02, 43.45, -37.85)
CIE-LCHlch(24.02, 57.62, 318.94°)
OKLaboklab(36.44% 0.1051 -0.1068)
OKLCHoklch(36.44% 0.15 314.5)
XYZxyz(7.6581, 4.1070, 16.6057)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1973 #327319
analogous
#2D1973 #5A1973 #73195F
triadic
#5A1973 #735A19 #19735A
tetradic
#5A1973 #732D19 #327319 #195F73
square
#5A1973 #732D19 #327319 #195F73
split-complementary
#5A1973 #5F7319 #19732D
monochromatic
#140519 #330E41 #5A1973 #8124A5 #A734D3

Accessibility & contrast

On white

11.53
#5A1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1973
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1973#FFFFFF#000000##FFFFFF
##5A19731.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#143B71
Tritanopia (blue-blind)
#582D45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1973;
/* rgb */ color: rgb(90, 25, 115);
/* oklch */ color: oklch(36.4% 0.150 314.5);
Tailwind
colors: {
  custom: {
    50: '#8c5d9c',
    500: '#5a1973',
    950: '#000000',
  },
}
SCSS
$custom: #5a1973;
$custom-light: #8c5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1973",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 283.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36438,
    "c": 0.14988,
    "h": 314.5
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#5A1973
secondary
#5DA840
accent
#E7416F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A1973

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

Preview Lab → · Contrast checker → · Palette generator →

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