#5A2EA4#5A2EA4

#5A2EA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.178 H 294.8°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA4
RGBrgb(90, 46, 164)
HSLhsl(262, 56%, 41%)
HSVhsv(262, 72%, 64%)
CMYKcmyk(45.1%, 72%, 0%, 35.7%)
CIE-LABlab(31.37, 45.92, -56.38)
CIE-LCHlch(31.37, 72.71, 309.16°)
OKLaboklab(42.87% 0.0745 -0.1614)
OKLCHoklch(42.87% 0.178 294.8)
XYZxyz(11.8925, 6.8077, 35.8022)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA4 #78A42E
analogous
#2E3DA4 #5A2EA4 #952EA4
triadic
#5A2EA4 #A45A2E #2EA45A
tetradic
#5A2EA4 #A42E3D #78A42E #2EA495
square
#5A2EA4 #A42E3D #78A42E #2EA495
split-complementary
#5A2EA4 #A4952E #3DA42E
monochromatic
#261344 #402174 #5A2EA4 #7745CB #9A74D8

Accessibility & contrast

On white

8.89
#5A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA4
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA4#FFFFFF#000000##FFFFFF
##5A2EA41.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#454C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2ea4;
/* rgb */ color: rgb(90, 46, 164);
/* oklch */ color: oklch(42.9% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#8f6bc0',
    500: '#5a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea4;
$custom-light: #8f6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea4",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 262.373,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42869,
    "c": 0.17778,
    "h": 294.8
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#5A2EA4
secondary
#A1C06E
accent
#DF48A7
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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