#5A2EA5#5A2EA5

#5A2EA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.179 H 294.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA5
RGBrgb(90, 46, 165)
HSLhsl(262, 56%, 41%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(45.5%, 72.1%, 0%, 35.3%)
CIE-LABlab(31.45, 46.19, -56.85)
CIE-LCHlch(31.45, 73.25, 309.10°)
OKLaboklab(42.95% 0.0743 -0.1628)
OKLCHoklch(42.95% 0.179 294.5)
XYZxyz(11.9831, 6.8439, 36.2797)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA5 #79A52E
analogous
#2E3EA5 #5A2EA5 #962EA5
triadic
#5A2EA5 #A55A2E #2EA55A
tetradic
#5A2EA5 #A52E3E #79A52E #2EA596
square
#5A2EA5 #A52E3E #79A52E #2EA596
split-complementary
#5A2EA5 #A5962E #3EA52E
monochromatic
#261345 #402175 #5A2EA5 #7745CB #9A75D8

Accessibility & contrast

On white

8.87
#5A2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA5#FFFFFF#000000##FFFFFF
##5A2EA51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2ea5;
/* rgb */ color: rgb(90, 46, 165);
/* oklch */ color: oklch(43.0% 0.179 294.5);
Tailwind
colors: {
  custom: {
    50: '#906bc1',
    500: '#5a2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea5;
$custom-light: #906bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea5",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 262.185,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.17893,
    "h": 294.5
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#5A2EA5
secondary
#A2C06F
accent
#E048A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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