#5A2C9B#5A2C9B

#5A2C9B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.170 H 297.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5A2C9B
RGBrgb(90, 44, 155)
HSLhsl(265, 56%, 39%)
HSVhsv(265, 72%, 61%)
CMYKcmyk(41.9%, 71.6%, 0%, 39.2%)
CIE-LABlab(30.26, 44.51, -52.73)
CIE-LCHlch(30.26, 69.00, 310.17°)
OKLaboklab(41.85% 0.0783 -0.1507)
OKLCHoklch(41.85% 0.17 297.5)
XYZxyz(11.0320, 6.3414, 31.6468)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C9B #6D9B2C
analogous
#2C369B #5A2C9B #922C9B
triadic
#5A2C9B #9B5A2C #2C9B5A
tetradic
#5A2C9B #9B2C36 #6D9B2C #2C9B92
square
#5A2C9B #9B2C36 #6D9B2C #2C9B92
split-complementary
#5A2C9B #9B922C #369B2C
monochromatic
#23113C #3E1E6B #5A2C9B #763CC8 #986CD5

Accessibility & contrast

On white

9.26
#5A2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A2C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C9B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C9B#FFFFFF#000000##FFFFFF
##5A2C9B1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#4A4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2c9b;
/* rgb */ color: rgb(90, 44, 155);
/* oklch */ color: oklch(41.9% 0.170 297.5);
Tailwind
colors: {
  custom: {
    50: '#8e69b9',
    500: '#5a2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c9b;
$custom-light: #8e69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c9b",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 264.865,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4185,
    "c": 0.16978,
    "h": 297.5
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#5A2C9B
secondary
#99BC67
accent
#DF49A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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