#5A217E#5A217E

#5A217E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.151 H 308.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5A217E
RGBrgb(90, 33, 126)
HSLhsl(277, 58%, 31%)
HSVhsv(277, 74%, 49%)
CMYKcmyk(28.6%, 73.8%, 0%, 50.6%)
CIE-LABlab(26.06, 42.51, -41.56)
CIE-LCHlch(26.06, 59.45, 315.65°)
OKLaboklab(38.15% 0.095 -0.1178)
OKLCHoklch(38.15% 0.151 308.9)
XYZxyz(8.5254, 4.7679, 20.2058)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A217E #457E21
analogous
#2B217E #5A217E #7E2173
triadic
#5A217E #7E5A21 #217E5A
tetradic
#5A217E #7E2B21 #457E21 #21737E
square
#5A217E #7E2B21 #457E21 #21737E
split-complementary
#5A217E #737E21 #217E2B
monochromatic
#15081D #37144E #5A217E #7D2EAE #9C4AD0

Accessibility & contrast

On white

10.75
#5A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A217E
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A217E#FFFFFF#000000##FFFFFF
##5A217E1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#0A3E7C
Tritanopia (blue-blind)
#55364D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a217e;
/* rgb */ color: rgb(90, 33, 126);
/* oklch */ color: oklch(38.1% 0.151 308.9);
Tailwind
colors: {
  custom: {
    50: '#8c62a4',
    500: '#5a217e',
    950: '#000000',
  },
}
SCSS
$custom: #5a217e;
$custom-light: #8c62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a217e",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 276.774,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.15132,
    "h": 308.9
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#5A217E
secondary
#72B14A
accent
#E24682
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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