#5A2A8A#5A2A8A

#5A2A8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.153 H 303.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5A2A8A
RGBrgb(90, 42, 138)
HSLhsl(270, 53%, 35%)
HSVhsv(270, 70%, 54%)
CMYKcmyk(34.8%, 69.6%, 0%, 45.9%)
CIE-LABlab(28.55, 41.08, -45.04)
CIE-LCHlch(28.55, 60.96, 312.36°)
OKLaboklab(40.21% 0.0832 -0.1281)
OKLCHoklch(40.21% 0.153 303)
XYZxyz(9.6308, 5.6646, 24.6258)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A8A #5A8A2A
analogous
#2A2A8A #5A2A8A #8A2A8A
triadic
#5A2A8A #8A5A2A #2A8A5A
tetradic
#5A2A8A #8A2A2A #5A8A2A #2A8A8A
square
#5A2A8A #8A2A2A #5A8A2A #2A8A8A
split-complementary
#5A2A8A #8A8A2A #2A8A2A
monochromatic
#1D0D2C #3B1C5B #5A2A8A #7938B9 #9760CF

Accessibility & contrast

On white

9.85
#5A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A8A
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A8A#FFFFFF#000000##FFFFFF
##5A2A8A1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#504056
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2a8a;
/* rgb */ color: rgb(90, 42, 138);
/* oklch */ color: oklch(40.2% 0.153 303.0);
Tailwind
colors: {
  custom: {
    50: '#8d67ad',
    500: '#5a2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a8a;
$custom-light: #8d67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a8a",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 270,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4021,
    "c": 0.15271,
    "h": 303
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#5A2A8A
secondary
#88B45B
accent
#DD4B94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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