#5A2A91#5A2A91

#5A2A91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.161 H 300.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5A2A91
RGBrgb(90, 42, 145)
HSLhsl(268, 55%, 37%)
HSVhsv(268, 71%, 57%)
CMYKcmyk(37.9%, 71%, 0%, 43.1%)
CIE-LABlab(29.09, 42.89, -48.49)
CIE-LCHlch(29.09, 64.74, 311.49°)
OKLaboklab(40.77% 0.0822 -0.1382)
OKLCHoklch(40.77% 0.161 300.7)
XYZxyz(10.1540, 5.8738, 27.3814)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A91 #61912A
analogous
#2A2E91 #5A2A91 #8E2A91
triadic
#5A2A91 #915A2A #2A915A
tetradic
#5A2A91 #912A2E #61912A #2A918E
square
#5A2A91 #912A2E #61912A #2A918E
split-complementary
#5A2A91 #918E2A #2E912A
monochromatic
#1F0F32 #3D1C62 #5A2A91 #7738C0 #9763D2

Accessibility & contrast

On white

9.66
#5A2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A91
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A91#FFFFFF#000000##FFFFFF
##5A2A911.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#4E435A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2a91;
/* rgb */ color: rgb(90, 42, 145);
/* oklch */ color: oklch(40.8% 0.161 300.7);
Tailwind
colors: {
  custom: {
    50: '#8e68b2',
    500: '#5a2a91',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a91;
$custom-light: #8e68b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a91",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 267.961,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.16078,
    "h": 300.7
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#5A2A91
secondary
#8EB85F
accent
#DE4999
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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