#5A2C8C#5A2C8C

#5A2C8C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.152 H 302.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5A2C8C
RGBrgb(90, 44, 140)
HSLhsl(269, 52%, 36%)
HSVhsv(269, 69%, 55%)
CMYKcmyk(35.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(29.08, 40.55, -45.43)
CIE-LCHlch(29.08, 60.90, 311.75°)
OKLaboklab(40.64% 0.0806 -0.1292)
OKLCHoklch(40.64% 0.152 302)
XYZxyz(9.8496, 5.8684, 25.4197)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C8C #5E8C2C
analogous
#2C2E8C #5A2C8C #8A2C8C
triadic
#5A2C8C #8C5A2C #2C8C5A
tetradic
#5A2C8C #8C2C2E #5E8C2C #2C8C8A
square
#5A2C8C #8C2C2E #5E8C2C #2C8C8A
split-complementary
#5A2C8C #8C8A2C #2E8C2C
monochromatic
#1E0F2F #3C1D5D #5A2C8C #783BBB #9764CE

Accessibility & contrast

On white

9.66
#5A2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C8C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C8C#FFFFFF#000000##FFFFFF
##5A2C8C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00448A
Tritanopia (blue-blind)
#504258
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c8c;
/* rgb */ color: rgb(90, 44, 140);
/* oklch */ color: oklch(40.6% 0.152 302.0);
Tailwind
colors: {
  custom: {
    50: '#8d68ae',
    500: '#5a2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c8c;
$custom-light: #8d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c8c",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 268.75,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.1523,
    "h": 302
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#5A2C8C
secondary
#8CB55F
accent
#DC4C97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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