#5A2EA9#5A2EA9

#5A2EA9 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.184 H 293.6°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA9
RGBrgb(90, 46, 169)
HSLhsl(261, 57%, 42%)
HSVhsv(261, 73%, 66%)
CMYKcmyk(46.7%, 72.8%, 0%, 33.7%)
CIE-LABlab(31.79, 47.28, -58.70)
CIE-LCHlch(31.79, 75.37, 308.85°)
OKLaboklab(43.3% 0.0735 -0.1682)
OKLCHoklch(43.3% 0.184 293.6)
XYZxyz(12.3529, 6.9918, 38.2271)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA9 #7DA92E
analogous
#2E40A9 #5A2EA9 #972EA9
triadic
#5A2EA9 #A95A2E #2EA95A
tetradic
#5A2EA9 #A92E40 #7DA92E #2EA997
square
#5A2EA9 #A92E40 #7DA92E #2EA997
split-complementary
#5A2EA9 #A9972E #40A92E
monochromatic
#271449 #402179 #5A2EA9 #7747CD #9B77DA

Accessibility & contrast

On white

8.76
#5A2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA9
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA9#FFFFFF#000000##FFFFFF
##5A2EA91.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#434E69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2ea9;
/* rgb */ color: rgb(90, 46, 169);
/* oklch */ color: oklch(43.3% 0.184 293.6);
Tailwind
colors: {
  custom: {
    50: '#906bc4',
    500: '#5a2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea9;
$custom-light: #906bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea9",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 261.463,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.433,
    "c": 0.18356,
    "h": 293.6
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#5A2EA9
secondary
#A5C271
accent
#E047AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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