#5A197D#5A197D

#5A197D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.160 H 310.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5A197D
RGBrgb(90, 25, 125)
HSLhsl(279, 67%, 29%)
HSVhsv(279, 80%, 49%)
CMYKcmyk(28%, 80%, 0%, 51%)
CIE-LABlab(24.80, 45.67, -42.98)
CIE-LCHlch(24.80, 62.71, 316.74°)
OKLaboklab(37.23% 0.1032 -0.1219)
OKLCHoklch(37.23% 0.16 310.3)
XYZxyz(8.2650, 4.3498, 19.8023)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197D #3C7D19
analogous
#28197D #5A197D #7D196E
triadic
#5A197D #7D5A19 #197D5A
tetradic
#5A197D #7D2819 #3C7D19 #196E7D
square
#5A197D #7D2819 #3C7D19 #196E7D
split-complementary
#5A197D #6E7D19 #197D28
monochromatic
#12051A #350F4A #5A197D #7F23B0 #A039D7

Accessibility & contrast

On white

11.23
#5A197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A197D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197D#FFFFFF#000000##FFFFFF
##5A197D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#55324B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a197d;
/* rgb */ color: rgb(90, 25, 125);
/* oklch */ color: oklch(37.2% 0.160 310.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ea3',
    500: '#5a197d',
    950: '#000000',
  },
}
SCSS
$custom: #5a197d;
$custom-light: #8d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197d",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 279,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.15973,
    "h": 310.3
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#5A197D
secondary
#68B140
accent
#EA3E7A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A197D

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

Preview Lab → · Contrast checker → · Palette generator →

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