#5A2A9A#5A2A9A

#5A2A9A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.171 H 298.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#5A2A9A
RGBrgb(90, 42, 154)
HSLhsl(266, 57%, 38%)
HSVhsv(266, 73%, 60%)
CMYKcmyk(41.6%, 72.7%, 0%, 39.6%)
CIE-LABlab(29.82, 45.25, -52.83)
CIE-LCHlch(29.82, 69.56, 310.58°)
OKLaboklab(41.51% 0.0805 -0.151)
OKLCHoklch(41.51% 0.171 298.1)
XYZxyz(10.8757, 6.1625, 31.1821)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A9A #6A9A2A
analogous
#2A329A #5A2A9A #922A9A
triadic
#5A2A9A #9A5A2A #2A9A5A
tetradic
#5A2A9A #9A2A32 #6A9A2A #2A9A92
square
#5A2A9A #9A2A32 #6A9A2A #2A9A92
split-complementary
#5A2A9A #9A922A #329A2A
monochromatic
#22103A #3E1D6A #5A2A9A #7638C9 #9768D6

Accessibility & contrast

On white

9.41
#5A2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A9A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A9A#FFFFFF#000000##FFFFFF
##5A2A9A1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4A465F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2a9a;
/* rgb */ color: rgb(90, 42, 154);
/* oklch */ color: oklch(41.5% 0.171 298.1);
Tailwind
colors: {
  custom: {
    50: '#8f68b9',
    500: '#5a2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a9a;
$custom-light: #8f68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a9a",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 265.714,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41512,
    "c": 0.17108,
    "h": 298.1
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#5A2A9A
secondary
#96BC63
accent
#E0479F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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