#5A198A#5A198A

#5A198A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.173 H 305.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5A198A
RGBrgb(90, 25, 138)
HSLhsl(275, 69%, 32%)
HSVhsv(275, 82%, 54%)
CMYKcmyk(34.8%, 81.9%, 0%, 45.9%)
CIE-LABlab(25.87, 48.67, -49.39)
CIE-LCHlch(25.87, 69.34, 314.58°)
OKLaboklab(38.32% 0.1 -0.1407)
OKLCHoklch(38.32% 0.173 305.4)
XYZxyz(9.1505, 4.7040, 24.4657)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A198A #498A19
analogous
#21198A #5A198A #8A1982
triadic
#5A198A #8A5A19 #198A5A
tetradic
#5A198A #8A2119 #498A19 #19828A
square
#5A198A #8A2119 #498A19 #19828A
split-complementary
#5A198A #828A19 #198A21
monochromatic
#160622 #381056 #5A198A #7C22BE #9A41DD

Accessibility & contrast

On white

10.82
#5A198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A198A
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A198A#FFFFFF#000000##FFFFFF
##5A198A1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#513752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a198a;
/* rgb */ color: rgb(90, 25, 138);
/* oklch */ color: oklch(38.3% 0.173 305.4);
Tailwind
colors: {
  custom: {
    50: '#8e5fad',
    500: '#5a198a',
    950: '#000000',
  },
}
SCSS
$custom: #5a198a;
$custom-light: #8e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a198a",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 274.513,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38319,
    "c": 0.17261,
    "h": 305.4
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#5A198A
secondary
#76BD42
accent
#EC3C87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A198A

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

Preview Lab → · Contrast checker → · Palette generator →

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