#5A198B#5A198B

#5A198B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.174 H 305.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5A198B
RGBrgb(90, 25, 139)
HSLhsl(274, 70%, 32%)
HSVhsv(274, 82%, 55%)
CMYKcmyk(35.3%, 82%, 0%, 45.5%)
CIE-LABlab(25.96, 48.90, -49.88)
CIE-LCHlch(25.96, 69.85, 314.44°)
OKLaboklab(38.41% 0.0997 -0.1421)
OKLCHoklch(38.41% 0.174 305)
XYZxyz(9.2232, 4.7331, 24.8488)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A198B #4A8B19
analogous
#21198B #5A198B #8B1983
triadic
#5A198B #8B5A19 #198B5A
tetradic
#5A198B #8B2119 #4A8B19 #19838B
square
#5A198B #8B2119 #4A8B19 #19838B
split-complementary
#5A198B #838B19 #198B21
monochromatic
#170623 #381057 #5A198B #7C22BF #9A41DD

Accessibility & contrast

On white

10.79
#5A198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A198B
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A198B#FFFFFF#000000##FFFFFF
##5A198B1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#513853
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a198b;
/* rgb */ color: rgb(90, 25, 139);
/* oklch */ color: oklch(38.4% 0.174 305.0);
Tailwind
colors: {
  custom: {
    50: '#8e5fae',
    500: '#5a198b',
    950: '#000000',
  },
}
SCSS
$custom: #5a198b;
$custom-light: #8e5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a198b",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 274.211,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38405,
    "c": 0.17361,
    "h": 305
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#5A198B
secondary
#77BE42
accent
#EC3B87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A198B

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

Preview Lab → · Contrast checker → · Palette generator →

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