#5A219C#5A219C

#5A219C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.183 H 298.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5A219C
RGBrgb(90, 33, 156)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 61%)
CMYKcmyk(42.3%, 78.8%, 0%, 38.8%)
CIE-LABlab(28.54, 49.88, -56.14)
CIE-LCHlch(28.54, 75.10, 311.62°)
OKLaboklab(40.67% 0.0882 -0.1606)
OKLCHoklch(40.67% 0.183 298.8)
XYZxyz(10.7595, 5.6615, 31.9720)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219C #639C21
analogous
#21269C #5A219C #98219C
triadic
#5A219C #9C5A21 #219C5A
tetradic
#5A219C #9C2126 #639C21 #219C98
square
#5A219C #9C2126 #639C21 #219C98
split-complementary
#5A219C #9C9821 #269C21
monochromatic
#200C37 #3D1669 #5A219C #772CCF #975BDC

Accessibility & contrast

On white

9.85
#5A219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A219C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219C#FFFFFF#000000##FFFFFF
##5A219C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#4A425E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a219c;
/* rgb */ color: rgb(90, 33, 156);
/* oklch */ color: oklch(40.7% 0.183 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f63ba',
    500: '#5a219c',
    950: '#000000',
  },
}
SCSS
$custom: #5a219c;
$custom-light: #8f63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219c",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 267.805,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.18324,
    "h": 298.8
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#5A219C
secondary
#90C158
accent
#E8409A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219C

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

Preview Lab → · Contrast checker → · Palette generator →

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