#5A2C9C#5A2C9C

#5A2C9C is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.171 H 297.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5A2C9C
RGBrgb(90, 44, 156)
HSLhsl(265, 56%, 39%)
HSVhsv(265, 72%, 61%)
CMYKcmyk(42.3%, 71.8%, 0%, 38.8%)
CIE-LABlab(30.34, 44.78, -53.20)
CIE-LCHlch(30.34, 69.54, 310.09°)
OKLaboklab(41.93% 0.0781 -0.152)
OKLCHoklch(41.93% 0.171 297.2)
XYZxyz(11.1163, 6.3751, 32.0909)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C9C #6E9C2C
analogous
#2C369C #5A2C9C #922C9C
triadic
#5A2C9C #9C5A2C #2C9C5A
tetradic
#5A2C9C #9C2C36 #6E9C2C #2C9C92
square
#5A2C9C #9C2C36 #6E9C2C #2C9C92
split-complementary
#5A2C9C #9C922C #369C2C
monochromatic
#23113D #3E1F6C #5A2C9C #763DC8 #986DD6

Accessibility & contrast

On white

9.23
#5A2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2C9C
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C9C#FFFFFF#000000##FFFFFF
##5A2C9C1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#494861
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2c9c;
/* rgb */ color: rgb(90, 44, 156);
/* oklch */ color: oklch(41.9% 0.171 297.2);
Tailwind
colors: {
  custom: {
    50: '#8f69ba',
    500: '#5a2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c9c;
$custom-light: #8f69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c9c",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 264.643,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41934,
    "c": 0.17093,
    "h": 297.2
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#5A2C9C
secondary
#9ABD67
accent
#DF49A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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