#5A2AC2#5A2AC2

#5A2AC2 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.216 H 289.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5A2AC2
RGBrgb(90, 42, 194)
HSLhsl(259, 64%, 46%)
HSVhsv(259, 78%, 76%)
CMYKcmyk(53.6%, 78.4%, 0%, 23.9%)
CIE-LABlab(33.40, 55.93, -70.90)
CIE-LCHlch(33.40, 90.30, 308.27°)
OKLaboklab(45.13% 0.0701 -0.2039)
OKLCHoklch(45.13% 0.216 289)
XYZxyz(14.7792, 7.7239, 51.7406)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AC2 #92C22A
analogous
#2A46C2 #5A2AC2 #A62AC2
triadic
#5A2AC2 #C25A2A #2AC25A
tetradic
#5A2AC2 #C22A46 #92C22A #2AC2A6
square
#5A2AC2 #C22A46 #92C22A #2AC2A6
split-complementary
#5A2AC2 #C2A62A #46C22A
monochromatic
#2B145D #431F90 #5A2AC2 #7B50D9 #A182E4

Accessibility & contrast

On white

8.25
#5A2AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5A2AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AC2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AC2#FFFFFF#000000##FFFFFF
##5A2AC21.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#315676
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2ac2;
/* rgb */ color: rgb(90, 42, 194);
/* oklch */ color: oklch(45.1% 0.216 289.0);
Tailwind
colors: {
  custom: {
    50: '#946ad6',
    500: '#5a2ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ac2;
$custom-light: #946ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ac2",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 258.947,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45125,
    "c": 0.21562,
    "h": 289
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#5A2AC2
secondary
#B3CD7B
accent
#E740B3
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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