#5A2AA6#5A2AA6

#5A2AA6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.185 H 294.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA6
RGBrgb(90, 42, 166)
HSLhsl(263, 60%, 41%)
HSVhsv(263, 75%, 65%)
CMYKcmyk(45.8%, 74.7%, 0%, 34.9%)
CIE-LABlab(30.84, 48.43, -58.45)
CIE-LCHlch(30.84, 75.91, 309.65°)
OKLaboklab(42.55% 0.0778 -0.1674)
OKLCHoklch(42.55% 0.185 294.9)
XYZxyz(11.9255, 6.5824, 36.7112)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA6 #76A62A
analogous
#2A38A6 #5A2AA6 #982AA6
triadic
#5A2AA6 #A65A2A #2AA65A
tetradic
#5A2AA6 #A62A38 #76A62A #2AA698
square
#5A2AA6 #A62A38 #76A62A #2AA698
split-complementary
#5A2AA6 #A6982A #38A62A
monochromatic
#251144 #401E75 #5A2AA6 #763FCE #9970DB

Accessibility & contrast

On white

9.07
#5A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA6
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA6#FFFFFF#000000##FFFFFF
##5A2AA61.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#444B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2aa6;
/* rgb */ color: rgb(90, 42, 166);
/* oklch */ color: oklch(42.5% 0.185 294.9);
Tailwind
colors: {
  custom: {
    50: '#9068c1',
    500: '#5a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa6;
$custom-light: #9068c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa6",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 263.226,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.18464,
    "h": 294.9
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#5A2AA6
secondary
#A0C26A
accent
#E345A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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