#5A197A#5A197A

#5A197A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 311.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5A197A
RGBrgb(90, 25, 122)
HSLhsl(280, 66%, 29%)
HSVhsv(280, 80%, 48%)
CMYKcmyk(26.2%, 79.5%, 0%, 52.2%)
CIE-LABlab(24.56, 45.00, -41.46)
CIE-LCHlch(24.56, 61.18, 317.34°)
OKLaboklab(36.99% 0.1039 -0.1174)
OKLCHoklch(36.99% 0.157 311.5)
XYZxyz(8.0763, 4.2743, 18.8082)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197A #397A19
analogous
#2A197A #5A197A #7A196A
triadic
#5A197A #7A5A19 #197A5A
tetradic
#5A197A #7A2A19 #397A19 #196A7A
square
#5A197A #7A2A19 #397A19 #196A7A
split-complementary
#5A197A #6A7A19 #197A2A
monochromatic
#130519 #350F47 #5A197A #7F23AD #A237D6

Accessibility & contrast

On white

11.32
#5A197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A197A
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197A#FFFFFF#000000##FFFFFF
##5A197A1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#053B78
Tritanopia (blue-blind)
#563049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a197a;
/* rgb */ color: rgb(90, 25, 122);
/* oklch */ color: oklch(37.0% 0.157 311.5);
Tailwind
colors: {
  custom: {
    50: '#8d5ea1',
    500: '#5a197a',
    950: '#000000',
  },
}
SCSS
$custom: #5a197a;
$custom-light: #8d5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197a",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 280.206,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36986,
    "c": 0.15676,
    "h": 311.5
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#5A197A
secondary
#65AF40
accent
#E93F77
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A197A

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

Preview Lab → · Contrast checker → · Palette generator →

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