#5A219E#5A219E

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

Color values

HEX#5A219E
RGBrgb(90, 33, 158)
HSLhsl(267, 65%, 37%)
HSVhsv(267, 79%, 62%)
CMYKcmyk(43%, 79.1%, 0%, 38%)
CIE-LABlab(28.72, 50.39, -57.06)
CIE-LCHlch(28.72, 76.13, 311.44°)
OKLaboklab(40.85% 0.0876 -0.1633)
OKLCHoklch(40.85% 0.185 298.2)
XYZxyz(10.9303, 5.7298, 32.8712)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A219E #659E21
analogous
#21279E #5A219E #99219E
triadic
#5A219E #9E5A21 #219E5A
tetradic
#5A219E #9E2127 #659E21 #219E99
square
#5A219E #9E2127 #659E21 #219E99
split-complementary
#5A219E #9E9921 #279E21
monochromatic
#200C39 #3D166B #5A219E #772CD1 #975CDD

Accessibility & contrast

On white

9.79
#5A219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A219E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A219E#FFFFFF#000000##FFFFFF
##5A219E1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#49435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a219e;
/* rgb */ color: rgb(90, 33, 158);
/* oklch */ color: oklch(40.8% 0.185 298.2);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5a219e',
    950: '#000000',
  },
}
SCSS
$custom: #5a219e;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a219e",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 267.36,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40846,
    "c": 0.18535,
    "h": 298.2
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#5A219E
secondary
#92C159
accent
#E83F9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A219E

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

Preview Lab → · Contrast checker → · Palette generator →

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