#5A199C#5A199C

#5A199C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.191 H 299.6°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5A199C
RGBrgb(90, 25, 156)
HSLhsl(270, 72%, 35%)
HSVhsv(270, 84%, 61%)
CMYKcmyk(42.3%, 84%, 0%, 38.8%)
CIE-LABlab(27.49, 52.95, -57.86)
CIE-LCHlch(27.49, 78.43, 312.46°)
OKLaboklab(39.93% 0.0942 -0.1656)
OKLCHoklch(39.93% 0.191 299.6)
XYZxyz(10.5633, 5.2691, 31.9065)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A199C #5B9C19
analogous
#19199C #5A199C #9B199C
triadic
#5A199C #9C5A19 #199C5A
tetradic
#5A199C #9C1919 #5B9C19 #199C9B
square
#5A199C #9C1919 #5B9C19 #199C9B
split-complementary
#5A199C #9C9B19 #199C19
monochromatic
#1D0833 #3C1167 #5A199C #7821D1 #974DE2

Accessibility & contrast

On white

10.22
#5A199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A199C
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A199C#FFFFFF#000000##FFFFFF
##5A199C1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#4A3F5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a199c;
/* rgb */ color: rgb(90, 25, 156);
/* oklch */ color: oklch(39.9% 0.191 299.6);
Tailwind
colors: {
  custom: {
    50: '#9060ba',
    500: '#5a199c',
    950: '#000000',
  },
}
SCSS
$custom: #5a199c;
$custom-light: #9060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a199c",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 269.771,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.19054,
    "h": 299.6
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#5A199C
secondary
#89C44C
accent
#EF3995
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5A199C

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

Preview Lab → · Contrast checker → · Palette generator →

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