#5A197E#5A197E

#5A197E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 309.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5A197E
RGBrgb(90, 25, 126)
HSLhsl(279, 67%, 30%)
HSVhsv(279, 80%, 49%)
CMYKcmyk(28.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(24.88, 45.90, -43.48)
CIE-LCHlch(24.88, 63.22, 316.55°)
OKLaboklab(37.31% 0.103 -0.1234)
OKLCHoklch(37.31% 0.161 309.9)
XYZxyz(8.3292, 4.3755, 20.1404)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197E #3D7E19
analogous
#28197E #5A197E #7E1970
triadic
#5A197E #7E5A19 #197E5A
tetradic
#5A197E #7E2819 #3D7E19 #19707E
square
#5A197E #7E2819 #3D7E19 #19707E
split-complementary
#5A197E #707E19 #197E28
monochromatic
#12051A #360F4B #5A197E #7E23B1 #9F3AD8

Accessibility & contrast

On white

11.20
#5A197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A197E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197E#FFFFFF#000000##FFFFFF
##5A197E1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a197e;
/* rgb */ color: rgb(90, 25, 126);
/* oklch */ color: oklch(37.3% 0.161 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ea4',
    500: '#5a197e',
    950: '#000000',
  },
}
SCSS
$custom: #5a197e;
$custom-light: #8d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 278.614,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37309,
    "c": 0.16072,
    "h": 309.9
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#5A197E
secondary
#69B241
accent
#EA3E7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A197E

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

Preview Lab → · Contrast checker → · Palette generator →

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