#5A198C#5A198C

#5A198C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.175 H 304.7°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5A198C
RGBrgb(90, 25, 140)
HSLhsl(274, 70%, 32%)
HSVhsv(274, 82%, 55%)
CMYKcmyk(35.7%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.05, 49.14, -50.36)
CIE-LCHlch(26.05, 70.36, 314.30°)
OKLaboklab(38.49% 0.0994 -0.1436)
OKLCHoklch(38.49% 0.175 304.7)
XYZxyz(9.2966, 4.7624, 25.2353)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A198C #4B8C19
analogous
#20198C #5A198C #8C1985
triadic
#5A198C #8C5A19 #198C5A
tetradic
#5A198C #8C2019 #4B8C19 #19858C
square
#5A198C #8C2019 #4B8C19 #19858C
split-complementary
#5A198C #858C19 #198C20
monochromatic
#170624 #391058 #5A198C #7B22C0 #9A42DD

Accessibility & contrast

On white

10.76
#5A198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A198C
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A198C#FFFFFF#000000##FFFFFF
##5A198C1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#503853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a198c;
/* rgb */ color: rgb(90, 25, 140);
/* oklch */ color: oklch(38.5% 0.175 304.7);
Tailwind
colors: {
  custom: {
    50: '#8e5fae',
    500: '#5a198c',
    950: '#000000',
  },
}
SCSS
$custom: #5a198c;
$custom-light: #8e5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a198c",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 273.913,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38493,
    "c": 0.1746,
    "h": 304.7
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#5A198C
secondary
#78BE43
accent
#ED3B88
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A198C

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

Preview Lab → · Contrast checker → · Palette generator →

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