#5A196E#5A196E

#5A196E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.145 H 316.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5A196E
RGBrgb(90, 25, 110)
HSLhsl(286, 63%, 26%)
HSVhsv(286, 77%, 43%)
CMYKcmyk(18.2%, 77.3%, 0%, 56.9%)
CIE-LABlab(23.65, 42.36, -35.22)
CIE-LCHlch(23.65, 55.09, 320.26°)
OKLaboklab(36.06% 0.1059 -0.0991)
OKLCHoklch(36.06% 0.145 316.9)
XYZxyz(7.3781, 3.9950, 15.1313)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A196E #2D6E19
analogous
#30196E #5A196E #6E1958
triadic
#5A196E #6E5A19 #196E5A
tetradic
#5A196E #6E3019 #2D6E19 #19586E
square
#5A196E #6E3019 #2D6E19 #19586E
split-complementary
#5A196E #586E19 #196E30
monochromatic
#140619 #310E3C #5A196E #8324A0 #AB31D0

Accessibility & contrast

On white

11.67
#5A196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A196E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A196E#FFFFFF#000000##FFFFFF
##5A196E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1A3A6C
Tritanopia (blue-blind)
#592B42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a196e;
/* rgb */ color: rgb(90, 25, 110);
/* oklch */ color: oklch(36.1% 0.145 316.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d98',
    500: '#5a196e',
    950: '#000000',
  },
}
SCSS
$custom: #5a196e;
$custom-light: #8c5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a196e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 285.882,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.14501,
    "h": 316.9
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#5A196E
secondary
#57A33F
accent
#E64268
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A196E

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

Preview Lab → · Contrast checker → · Palette generator →

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