#5A219A#5A219A

#5A219A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.181 H 299.4°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5A219A
RGBrgb(90, 33, 154)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 60%)
CMYKcmyk(41.6%, 78.6%, 0%, 39.6%)
CIE-LABlab(28.36, 49.38, -55.20)
CIE-LCHlch(28.36, 74.07, 311.81°)
OKLaboklab(40.49% 0.0888 -0.1579)
OKLCHoklch(40.49% 0.181 299.4)
XYZxyz(10.5916, 5.5943, 31.0874)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219A #619A21
analogous
#21259A #5A219A #97219A
triadic
#5A219A #9A5A21 #219A5A
tetradic
#5A219A #9A2125 #619A21 #219A97
square
#5A219A #9A2125 #619A21 #219A97
split-complementary
#5A219A #9A9721 #259A21
monochromatic
#1F0B35 #3D1668 #5A219A #772CCC #975ADC

Accessibility & contrast

On white

9.91
#5A219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A219A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219A#FFFFFF#000000##FFFFFF
##5A219A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4B425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a219a;
/* rgb */ color: rgb(90, 33, 154);
/* oklch */ color: oklch(40.5% 0.181 299.4);
Tailwind
colors: {
  custom: {
    50: '#8f63b9',
    500: '#5a219a',
    950: '#000000',
  },
}
SCSS
$custom: #5a219a;
$custom-light: #8f63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219a",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 268.264,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.18112,
    "h": 299.4
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#5A219A
secondary
#8EC057
accent
#E84099
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219A

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

Preview Lab → · Contrast checker → · Palette generator →

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