#5A198E#5A198E

#5A198E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.177 H 304.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5A198E
RGBrgb(90, 25, 142)
HSLhsl(273, 70%, 33%)
HSVhsv(273, 82%, 56%)
CMYKcmyk(36.6%, 82.4%, 0%, 44.3%)
CIE-LABlab(26.22, 49.61, -51.31)
CIE-LCHlch(26.22, 71.37, 314.03°)
OKLaboklab(38.67% 0.0988 -0.1464)
OKLCHoklch(38.67% 0.177 304)
XYZxyz(9.4454, 4.8219, 26.0191)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A198E #4D8E19
analogous
#1F198E #5A198E #8E1988
triadic
#5A198E #8E5A19 #198E5A
tetradic
#5A198E #8E1F19 #4D8E19 #19888E
square
#5A198E #8E1F19 #4D8E19 #19888E
split-complementary
#5A198E #888E19 #198E1F
monochromatic
#180726 #39105A #5A198E #7B22C2 #9943DE

Accessibility & contrast

On white

10.69
#5A198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5A198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A198E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A198E#FFFFFF#000000##FFFFFF
##5A198E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#503954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a198e;
/* rgb */ color: rgb(90, 25, 142);
/* oklch */ color: oklch(38.7% 0.177 304.0);
Tailwind
colors: {
  custom: {
    50: '#8e5fb0',
    500: '#5a198e',
    950: '#000000',
  },
}
SCSS
$custom: #5a198e;
$custom-light: #8e5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a198e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 273.333,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38668,
    "c": 0.17659,
    "h": 304
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#5A198E
secondary
#7BBF44
accent
#ED3B8A
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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