#5A2C99#5A2C99

#5A2C99 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.167 H 298.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5A2C99
RGBrgb(90, 44, 153)
HSLhsl(265, 55%, 39%)
HSVhsv(265, 71%, 60%)
CMYKcmyk(41.2%, 71.2%, 0%, 40%)
CIE-LABlab(30.10, 43.98, -51.77)
CIE-LCHlch(30.10, 67.93, 310.35°)
OKLaboklab(41.68% 0.0787 -0.1478)
OKLCHoklch(41.68% 0.167 298)
XYZxyz(10.8654, 6.2748, 30.7695)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C99 #6B992C
analogous
#2C3499 #5A2C99 #902C99
triadic
#5A2C99 #995A2C #2C995A
tetradic
#5A2C99 #992C34 #6B992C #2C9990
square
#5A2C99 #992C34 #6B992C #2C9990
split-complementary
#5A2C99 #99902C #34992C
monochromatic
#22113A #3E1E69 #5A2C99 #763BC7 #976BD4

Accessibility & contrast

On white

9.31
#5A2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2C99
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C99#FFFFFF#000000##FFFFFF
##5A2C991.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#4B475F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2c99;
/* rgb */ color: rgb(90, 44, 153);
/* oklch */ color: oklch(41.7% 0.167 298.0);
Tailwind
colors: {
  custom: {
    50: '#8e69b8',
    500: '#5a2c99',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c99;
$custom-light: #8e69b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c99",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 265.321,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41684,
    "c": 0.16747,
    "h": 298
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#5A2C99
secondary
#97BB66
accent
#DF49A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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