#5A2A97#5A2A97

#5A2A97 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.168 H 298.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5A2A97
RGBrgb(90, 42, 151)
HSLhsl(266, 56%, 38%)
HSVhsv(266, 72%, 59%)
CMYKcmyk(40.4%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.57, 44.46, -51.40)
CIE-LCHlch(29.57, 67.96, 310.86°)
OKLaboklab(41.26% 0.0811 -0.1467)
OKLCHoklch(41.26% 0.168 298.9)
XYZxyz(10.6289, 6.0638, 29.8826)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A97 #67972A
analogous
#2A3097 #5A2A97 #902A97
triadic
#5A2A97 #975A2A #2A975A
tetradic
#5A2A97 #972A30 #67972A #2A9790
square
#5A2A97 #972A30 #67972A #2A9790
split-complementary
#5A2A97 #97902A #30972A
monochromatic
#210F37 #3D1D67 #5A2A97 #7737C7 #9767D5

Accessibility & contrast

On white

9.49
#5A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A97
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A97#FFFFFF#000000##FFFFFF
##5A2A971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4B455D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2a97;
/* rgb */ color: rgb(90, 42, 151);
/* oklch */ color: oklch(41.3% 0.168 298.9);
Tailwind
colors: {
  custom: {
    50: '#8e68b6',
    500: '#5a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a97;
$custom-light: #8e68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a97",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 266.422,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41261,
    "c": 0.16765,
    "h": 298.9
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#5A2A97
secondary
#94BB62
accent
#E0489D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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