#5A2C8A#5A2C8A

#5A2C8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.150 H 302.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5A2C8A
RGBrgb(90, 44, 138)
HSLhsl(269, 52%, 36%)
HSVhsv(269, 68%, 54%)
CMYKcmyk(34.8%, 68.1%, 0%, 45.9%)
CIE-LABlab(28.93, 40.03, -44.43)
CIE-LCHlch(28.93, 59.81, 312.02°)
OKLaboklab(40.48% 0.0809 -0.1263)
OKLCHoklch(40.48% 0.15 302.6)
XYZxyz(9.7035, 5.8100, 24.6501)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C8A #5C8A2C
analogous
#2C2D8A #5A2C8A #892C8A
triadic
#5A2C8A #8A5A2C #2C8A5A
tetradic
#5A2C8A #8A2C2D #5C8A2C #2C8A89
square
#5A2C8A #8A2C2D #5C8A2C #2C8A89
split-complementary
#5A2C8A #8A892C #2D8A2C
monochromatic
#1D0E2D #3C1D5C #5A2C8A #783BB8 #9763CD

Accessibility & contrast

On white

9.71
#5A2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C8A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C8A#FFFFFF#000000##FFFFFF
##5A2C8A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#044488
Tritanopia (blue-blind)
#504157
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2c8a;
/* rgb */ color: rgb(90, 44, 138);
/* oklch */ color: oklch(40.5% 0.150 302.6);
Tailwind
colors: {
  custom: {
    50: '#8d68ad',
    500: '#5a2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c8a;
$custom-light: #8d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c8a",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 269.362,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.14995,
    "h": 302.6
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#5A2C8A
secondary
#8AB45E
accent
#DB4D95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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