#5A2C9A#5A2C9A

#5A2C9A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.169 H 297.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5A2C9A
RGBrgb(90, 44, 154)
HSLhsl(265, 56%, 39%)
HSVhsv(265, 71%, 60%)
CMYKcmyk(41.6%, 71.4%, 0%, 39.6%)
CIE-LABlab(30.18, 44.24, -52.25)
CIE-LCHlch(30.18, 68.47, 310.26°)
OKLaboklab(41.77% 0.0785 -0.1492)
OKLCHoklch(41.77% 0.169 297.7)
XYZxyz(10.9484, 6.3079, 31.2063)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C9A #6C9A2C
analogous
#2C359A #5A2C9A #912C9A
triadic
#5A2C9A #9A5A2C #2C9A5A
tetradic
#5A2C9A #9A2C35 #6C9A2C #2C9A91
square
#5A2C9A #9A2C35 #6C9A2C #2C9A91
split-complementary
#5A2C9A #9A912C #359A2C
monochromatic
#22113B #3E1E6A #5A2C9A #763CC7 #986CD5

Accessibility & contrast

On white

9.29
#5A2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C9A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C9A#FFFFFF#000000##FFFFFF
##5A2C9A1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4A4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2c9a;
/* rgb */ color: rgb(90, 44, 154);
/* oklch */ color: oklch(41.8% 0.169 297.7);
Tailwind
colors: {
  custom: {
    50: '#8e69b9',
    500: '#5a2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c9a;
$custom-light: #8e69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c9a",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 265.091,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41767,
    "c": 0.16862,
    "h": 297.7
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#5A2C9A
secondary
#98BC66
accent
#DF49A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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