#5A2A96#5A2A96

#5A2A96 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.167 H 299.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A2A96
RGBrgb(90, 42, 150)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 59%)
CMYKcmyk(40%, 72%, 0%, 41.2%)
CIE-LABlab(29.49, 44.19, -50.92)
CIE-LCHlch(29.49, 67.42, 310.96°)
OKLaboklab(41.18% 0.0813 -0.1453)
OKLCHoklch(41.18% 0.167 299.2)
XYZxyz(10.5480, 6.0315, 29.4567)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A96 #66962A
analogous
#2A3096 #5A2A96 #902A96
triadic
#5A2A96 #965A2A #2A965A
tetradic
#5A2A96 #962A30 #66962A #2A9690
square
#5A2A96 #962A30 #66962A #2A9690
split-complementary
#5A2A96 #96902A #30962A
monochromatic
#210F36 #3D1D66 #5A2A96 #7737C6 #9766D4

Accessibility & contrast

On white

9.52
#5A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2A96
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A96#FFFFFF#000000##FFFFFF
##5A2A961.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#4C445D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2a96;
/* rgb */ color: rgb(90, 42, 150);
/* oklch */ color: oklch(41.2% 0.167 299.2);
Tailwind
colors: {
  custom: {
    50: '#8e68b6',
    500: '#5a2a96',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a96;
$custom-light: #8e68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a96",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 266.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41178,
    "c": 0.16651,
    "h": 299.2
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#5A2A96
secondary
#93BA61
accent
#E0489C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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