#5A219B#5A219B

#5A219B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.182 H 299.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5A219B
RGBrgb(90, 33, 155)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 61%)
CMYKcmyk(41.9%, 78.7%, 0%, 39.2%)
CIE-LABlab(28.45, 49.63, -55.67)
CIE-LCHlch(28.45, 74.58, 311.72°)
OKLaboklab(40.58% 0.0885 -0.1592)
OKLCHoklch(40.58% 0.182 299.1)
XYZxyz(10.6752, 5.6278, 31.5278)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219B #629B21
analogous
#21259B #5A219B #97219B
triadic
#5A219B #9B5A21 #219B5A
tetradic
#5A219B #9B2125 #629B21 #219B97
square
#5A219B #9B2125 #629B21 #219B97
split-complementary
#5A219B #9B9721 #259B21
monochromatic
#1F0C36 #3D1669 #5A219B #772CCD #975ADC

Accessibility & contrast

On white

9.88
#5A219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A219B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219B#FFFFFF#000000##FFFFFF
##5A219B1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#4A425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a219b;
/* rgb */ color: rgb(90, 33, 155);
/* oklch */ color: oklch(40.6% 0.182 299.1);
Tailwind
colors: {
  custom: {
    50: '#8f63b9',
    500: '#5a219b',
    950: '#000000',
  },
}
SCSS
$custom: #5a219b;
$custom-light: #8f63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219b",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 268.033,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.18218,
    "h": 299.1
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#5A219B
secondary
#8FC058
accent
#E84099
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219B

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

Preview Lab → · Contrast checker → · Palette generator →

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