#5A196B#5A196B

#5A196B is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.142 H 318.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5A196B
RGBrgb(90, 25, 107)
HSLhsl(288, 62%, 26%)
HSVhsv(288, 77%, 42%)
CMYKcmyk(15.9%, 76.6%, 0%, 58%)
CIE-LABlab(23.44, 41.73, -33.62)
CIE-LCHlch(23.44, 53.59, 321.14°)
OKLaboklab(35.84% 0.1062 -0.0944)
OKLCHoklch(35.84% 0.142 318.4)
XYZxyz(7.2176, 3.9308, 14.2856)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A196B #2A6B19
analogous
#31196B #5A196B #6B1953
triadic
#5A196B #6B5A19 #196B5A
tetradic
#5A196B #6B3119 #2A6B19 #19536B
square
#5A196B #6B3119 #2A6B19 #19536B
split-complementary
#5A196B #536B19 #196B31
monochromatic
#150619 #300D39 #5A196B #84259D #AD30CE

Accessibility & contrast

On white

11.76
#5A196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A196B
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A196B#FFFFFF#000000##FFFFFF
##5A196B1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#5A2A40
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a196b;
/* rgb */ color: rgb(90, 25, 107);
/* oklch */ color: oklch(35.8% 0.142 318.4);
Tailwind
colors: {
  custom: {
    50: '#8c5d96',
    500: '#5a196b',
    950: '#000000',
  },
}
SCSS
$custom: #5a196b;
$custom-light: #8c5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a196b",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 287.561,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35841,
    "c": 0.1421,
    "h": 318.4
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#5A196B
secondary
#53A13F
accent
#E54364
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A196B

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

Preview Lab → · Contrast checker → · Palette generator →

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