#5A196D#5A196D

#5A196D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.144 H 317.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5A196D
RGBrgb(90, 25, 109)
HSLhsl(286, 63%, 26%)
HSVhsv(286, 77%, 43%)
CMYKcmyk(17.4%, 77.1%, 0%, 57.3%)
CIE-LABlab(23.58, 42.15, -34.69)
CIE-LCHlch(23.58, 54.59, 320.54°)
OKLaboklab(35.99% 0.106 -0.0975)
OKLCHoklch(35.99% 0.144 317.4)
XYZxyz(7.3240, 3.9734, 14.8462)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A196D #2C6D19
analogous
#30196D #5A196D #6D1956
triadic
#5A196D #6D5A19 #196D5A
tetradic
#5A196D #6D3019 #2C6D19 #19566D
square
#5A196D #6D3019 #2C6D19 #19566D
split-complementary
#5A196D #566D19 #196D30
monochromatic
#150619 #310E3B #5A196D #83249F #AC31D0

Accessibility & contrast

On white

11.70
#5A196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A196D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A196D#FFFFFF#000000##FFFFFF
##5A196D1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1B3A6B
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a196d;
/* rgb */ color: rgb(90, 25, 109);
/* oklch */ color: oklch(36.0% 0.144 317.4);
Tailwind
colors: {
  custom: {
    50: '#8c5d97',
    500: '#5a196d',
    950: '#000000',
  },
}
SCSS
$custom: #5a196d;
$custom-light: #8c5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a196d",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 286.429,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35987,
    "c": 0.14403,
    "h": 317.4
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#5A196D
secondary
#56A23F
accent
#E64267
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5A196D

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

Preview Lab → · Contrast checker → · Palette generator →

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