#5A2AC0#5A2AC0

#5A2AC0 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.213 H 289.3°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5A2AC0
RGBrgb(90, 42, 192)
HSLhsl(259, 64%, 46%)
HSVhsv(259, 78%, 75%)
CMYKcmyk(53.1%, 78.1%, 0%, 24.7%)
CIE-LABlab(33.21, 55.40, -70.03)
CIE-LCHlch(33.21, 89.30, 308.34°)
OKLaboklab(44.93% 0.0707 -0.2014)
OKLCHoklch(44.93% 0.213 289.3)
XYZxyz(14.5561, 7.6347, 50.5656)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AC0 #90C02A
analogous
#2A45C0 #5A2AC0 #A52AC0
triadic
#5A2AC0 #C05A2A #2AC05A
tetradic
#5A2AC0 #C02A45 #90C02A #2AC0A5
square
#5A2AC0 #C02A45 #90C02A #2AC0A5
split-complementary
#5A2AC0 #C0A52A #45C02A
monochromatic
#2B145C #421F8E #5A2AC0 #7B4FD8 #A081E3

Accessibility & contrast

On white

8.31
#5A2AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A2AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AC0
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AC0#FFFFFF#000000##FFFFFF
##5A2AC01.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#325575
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2ac0;
/* rgb */ color: rgb(90, 42, 192);
/* oklch */ color: oklch(44.9% 0.213 289.3);
Tailwind
colors: {
  custom: {
    50: '#946ad4',
    500: '#5a2ac0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ac0;
$custom-light: #946ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ac0",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 259.2,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44934,
    "c": 0.21345,
    "h": 289.3
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

primary
#5A2AC0
secondary
#B2CC7A
accent
#E741B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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