#5A2AA8#5A2AA8

#5A2AA8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.187 H 294.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA8
RGBrgb(90, 42, 168)
HSLhsl(263, 60%, 41%)
HSVhsv(263, 75%, 66%)
CMYKcmyk(46.4%, 75%, 0%, 34.1%)
CIE-LABlab(31.01, 48.96, -59.37)
CIE-LCHlch(31.01, 76.95, 309.51°)
OKLaboklab(42.73% 0.0773 -0.1701)
OKLCHoklch(42.73% 0.187 294.4)
XYZxyz(12.1104, 6.6564, 37.6849)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA8 #78A82A
analogous
#2A39A8 #5A2AA8 #992AA8
triadic
#5A2AA8 #A85A2A #2AA85A
tetradic
#5A2AA8 #A82A39 #78A82A #2AA899
square
#5A2AA8 #A82A39 #78A82A #2AA899
split-complementary
#5A2AA8 #A8992A #39A82A
monochromatic
#261246 #401E77 #5A2AA8 #7740CF #9A71DB

Accessibility & contrast

On white

9.01
#5A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA8
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA8#FFFFFF#000000##FFFFFF
##5A2AA81.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#434C67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2aa8;
/* rgb */ color: rgb(90, 42, 168);
/* oklch */ color: oklch(42.7% 0.187 294.4);
Tailwind
colors: {
  custom: {
    50: '#9069c3',
    500: '#5a2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa8;
$custom-light: #9069c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa8",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 262.857,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42725,
    "c": 0.18689,
    "h": 294.4
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#5A2AA8
secondary
#A1C36B
accent
#E345A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5A2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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