#5A196A#5A196A

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

Color values

HEX#5A196A
RGBrgb(90, 25, 106)
HSLhsl(288, 62%, 26%)
HSVhsv(288, 76%, 42%)
CMYKcmyk(15.1%, 76.4%, 0%, 58.4%)
CIE-LABlab(23.37, 41.52, -33.09)
CIE-LCHlch(23.37, 53.09, 321.45°)
OKLaboklab(35.77% 0.1063 -0.0928)
OKLCHoklch(35.77% 0.141 318.9)
XYZxyz(7.1653, 3.9099, 14.0101)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A196A #296A19
analogous
#31196A #5A196A #6A1951
triadic
#5A196A #6A5A19 #196A5A
tetradic
#5A196A #6A3119 #296A19 #19516A
square
#5A196A #6A3119 #296A19 #19516A
split-complementary
#5A196A #516A19 #196A31
monochromatic
#150619 #300D38 #5A196A #84259C #AE30CD

Accessibility & contrast

On white

11.78
#5A196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A196A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A196A#FFFFFF#000000##FFFFFF
##5A196A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1E3A68
Tritanopia (blue-blind)
#5A2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a196a;
/* rgb */ color: rgb(90, 25, 106);
/* oklch */ color: oklch(35.8% 0.141 318.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d95',
    500: '#5a196a',
    950: '#000000',
  },
}
SCSS
$custom: #5a196a;
$custom-light: #8c5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a196a",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 288.148,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.14113,
    "h": 318.9
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#5A196A
secondary
#52A03F
accent
#E54363
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A196A

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

Preview Lab → · Contrast checker → · Palette generator →

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