#5A2C9D#5A2C9D

#5A2C9D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.172 H 296.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5A2C9D
RGBrgb(90, 44, 157)
HSLhsl(264, 56%, 39%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(42.7%, 72%, 0%, 38.4%)
CIE-LABlab(30.42, 45.04, -53.68)
CIE-LCHlch(30.42, 70.07, 310.00°)
OKLaboklab(42.02% 0.0779 -0.1534)
OKLCHoklch(42.02% 0.172 296.9)
XYZxyz(11.2013, 6.4091, 32.5387)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C9D #6F9D2C
analogous
#2C369D #5A2C9D #932C9D
triadic
#5A2C9D #9D5A2C #2C9D5A
tetradic
#5A2C9D #9D2C36 #6F9D2C #2C9D93
square
#5A2C9D #9D2C36 #6F9D2C #2C9D93
split-complementary
#5A2C9D #9D932C #369D2C
monochromatic
#23113D #3F1F6D #5A2C9D #763DC9 #986DD6

Accessibility & contrast

On white

9.20
#5A2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C9D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C9D#FFFFFF#000000##FFFFFF
##5A2C9D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#494861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2c9d;
/* rgb */ color: rgb(90, 44, 157);
/* oklch */ color: oklch(42.0% 0.172 296.9);
Tailwind
colors: {
  custom: {
    50: '#8f69bb',
    500: '#5a2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c9d;
$custom-light: #8f69bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c9d",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 264.425,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42018,
    "c": 0.17209,
    "h": 296.9
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#5A2C9D
secondary
#9ABD68
accent
#E048A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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