#5A2A90#5A2A90

#5A2A90 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.160 H 301.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5A2A90
RGBrgb(90, 42, 144)
HSLhsl(268, 55%, 36%)
HSVhsv(268, 71%, 56%)
CMYKcmyk(37.5%, 70.8%, 0%, 43.5%)
CIE-LABlab(29.01, 42.63, -48.01)
CIE-LCHlch(29.01, 64.20, 311.60°)
OKLaboklab(40.69% 0.0823 -0.1368)
OKLCHoklch(40.69% 0.16 301)
XYZxyz(10.0772, 5.8431, 26.9771)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A90 #60902A
analogous
#2A2D90 #5A2A90 #8D2A90
triadic
#5A2A90 #905A2A #2A905A
tetradic
#5A2A90 #902A2D #60902A #2A908D
square
#5A2A90 #902A2D #60902A #2A908D
split-complementary
#5A2A90 #908D2A #2D902A
monochromatic
#1F0E31 #3C1C61 #5A2A90 #7838BF #9763D1

Accessibility & contrast

On white

9.68
#5A2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2A90
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A90#FFFFFF#000000##FFFFFF
##5A2A901.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#4E425A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2a90;
/* rgb */ color: rgb(90, 42, 144);
/* oklch */ color: oklch(40.7% 0.160 301.0);
Tailwind
colors: {
  custom: {
    50: '#8d67b1',
    500: '#5a2a90',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a90;
$custom-light: #8d67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a90",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 268.235,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40687,
    "c": 0.15963,
    "h": 301
  },
  "luminance": 0.05843
}

Semantic roles & 50–950 ramp

primary
#5A2A90
secondary
#8EB75E
accent
#DE4A98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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