#5A219D#5A219D

#5A219D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.184 H 298.5°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5A219D
RGBrgb(90, 33, 157)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42.7%, 79%, 0%, 38.4%)
CIE-LABlab(28.63, 50.13, -56.60)
CIE-LCHlch(28.63, 75.61, 311.53°)
OKLaboklab(40.76% 0.0879 -0.162)
OKLCHoklch(40.76% 0.184 298.5)
XYZxyz(10.8445, 5.6955, 32.4197)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219D #649D21
analogous
#21269D #5A219D #98219D
triadic
#5A219D #9D5A21 #219D5A
tetradic
#5A219D #9D2126 #649D21 #219D98
square
#5A219D #9D2126 #649D21 #219D98
split-complementary
#5A219D #9D9821 #269D21
monochromatic
#200C38 #3D166A #5A219D #772CD0 #975CDD

Accessibility & contrast

On white

9.82
#5A219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A219D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219D#FFFFFF#000000##FFFFFF
##5A219D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#49435F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a219d;
/* rgb */ color: rgb(90, 33, 157);
/* oklch */ color: oklch(40.8% 0.184 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f63bb',
    500: '#5a219d',
    950: '#000000',
  },
}
SCSS
$custom: #5a219d;
$custom-light: #8f63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219d",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 267.581,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40756,
    "c": 0.18429,
    "h": 298.5
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#5A219D
secondary
#91C159
accent
#E8409B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219D

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

Preview Lab → · Contrast checker → · Palette generator →

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