#5A2AAC#5A2AAC

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

Color values

HEX#5A2AAC
RGBrgb(90, 42, 172)
HSLhsl(262, 61%, 42%)
HSVhsv(262, 76%, 67%)
CMYKcmyk(47.7%, 75.6%, 0%, 32.5%)
CIE-LABlab(31.37, 50.03, -61.19)
CIE-LCHlch(31.37, 79.04, 309.27°)
OKLaboklab(43.08% 0.0763 -0.1755)
OKLCHoklch(43.08% 0.191 293.5)
XYZxyz(12.4888, 6.8077, 39.6777)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AAC #7CAC2A
analogous
#2A3BAC #5A2AAC #9B2AAC
triadic
#5A2AAC #AC5A2A #2AAC5A
tetradic
#5A2AAC #AC2A3B #7CAC2A #2AAC9B
square
#5A2AAC #AC2A3B #7CAC2A #2AAC9B
split-complementary
#5A2AAC #AC9B2A #3BAC2A
monochromatic
#27124A #401E7B #5A2AAC #7742D1 #9A73DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2AAC#FFFFFF#000000##FFFFFF
##5A2AAC1.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)
#004BB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#414D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2aac;
/* rgb */ color: rgb(90, 42, 172);
/* oklch */ color: oklch(43.1% 0.191 293.5);
Tailwind
colors: {
  custom: {
    50: '#9169c6',
    500: '#5a2aac',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aac;
$custom-light: #9169c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aac",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 262.154,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43082,
    "c": 0.19137,
    "h": 293.5
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#5A2AAC
secondary
#A4C46D
accent
#E444A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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