#5A219F#5A219F

#5A219F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.186 H 297.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5A219F
RGBrgb(90, 33, 159)
HSLhsl(267, 66%, 38%)
HSVhsv(267, 79%, 62%)
CMYKcmyk(43.4%, 79.2%, 0%, 37.6%)
CIE-LABlab(28.81, 50.64, -57.53)
CIE-LCHlch(28.81, 76.64, 311.36°)
OKLaboklab(40.94% 0.0874 -0.1647)
OKLCHoklch(40.94% 0.186 297.9)
XYZxyz(11.0167, 5.7644, 33.3264)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219F #669F21
analogous
#21279F #5A219F #99219F
triadic
#5A219F #9F5A21 #219F5A
tetradic
#5A219F #9F2127 #669F21 #219F99
square
#5A219F #9F2127 #669F21 #219F99
split-complementary
#5A219F #9F9921 #279F21
monochromatic
#210C3A #3D166C #5A219F #772CD2 #975DDD

Accessibility & contrast

On white

9.75
#5A219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A219F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219F#FFFFFF#000000##FFFFFF
##5A219F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#484460
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a219f;
/* rgb */ color: rgb(90, 33, 159);
/* oklch */ color: oklch(40.9% 0.186 297.9);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5a219f',
    950: '#000000',
  },
}
SCSS
$custom: #5a219f;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219f",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 267.143,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40936,
    "c": 0.18641,
    "h": 297.9
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#5A219F
secondary
#93C25A
accent
#E93F9C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219F

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

Preview Lab → · Contrast checker → · Palette generator →

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