#5A198F#5A198F

#5A198F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 303.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5A198F
RGBrgb(90, 25, 143)
HSLhsl(273, 70%, 33%)
HSVhsv(273, 83%, 56%)
CMYKcmyk(37.1%, 82.5%, 0%, 43.9%)
CIE-LABlab(26.31, 49.84, -51.79)
CIE-LCHlch(26.31, 71.88, 313.90°)
OKLaboklab(38.76% 0.0985 -0.1478)
OKLCHoklch(38.76% 0.178 303.7)
XYZxyz(9.5208, 4.8521, 26.4162)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A198F #4E8F19
analogous
#1F198F #5A198F #8F1989
triadic
#5A198F #8F5A19 #198F5A
tetradic
#5A198F #8F1F19 #4E8F19 #19898F
square
#5A198F #8F1F19 #4E8F19 #19898F
split-complementary
#5A198F #898F19 #198F1F
monochromatic
#180727 #39105B #5A198F #7B22C3 #9944DE

Accessibility & contrast

On white

10.66
#5A198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5A198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A198F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A198F#FFFFFF#000000##FFFFFF
##5A198F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#4F3955
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a198f;
/* rgb */ color: rgb(90, 25, 143);
/* oklch */ color: oklch(38.8% 0.178 303.7);
Tailwind
colors: {
  custom: {
    50: '#8e5fb1',
    500: '#5a198f',
    950: '#000000',
  },
}
SCSS
$custom: #5a198f;
$custom-light: #8e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a198f",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 273.051,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38756,
    "c": 0.17759,
    "h": 303.7
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#5A198F
secondary
#7CBF44
accent
#ED3B8B
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A198F

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

Preview Lab → · Contrast checker → · Palette generator →

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