#5A2DA4#5A2DA4

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

Color values

HEX#5A2DA4
RGBrgb(90, 45, 164)
HSLhsl(263, 57%, 41%)
HSVhsv(263, 73%, 64%)
CMYKcmyk(45.1%, 72.6%, 0%, 35.7%)
CIE-LABlab(31.19, 46.43, -56.67)
CIE-LCHlch(31.19, 73.26, 309.32°)
OKLaboklab(42.74% 0.0755 -0.1623)
OKLCHoklch(42.74% 0.179 294.9)
XYZxyz(11.8539, 6.7305, 35.7893)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DA4 #77A42D
analogous
#2D3BA4 #5A2DA4 #952DA4
triadic
#5A2DA4 #A45A2D #2DA45A
tetradic
#5A2DA4 #A42D3B #77A42D #2DA495
square
#5A2DA4 #A42D3B #77A42D #2DA495
split-complementary
#5A2DA4 #A4952D #3BA42D
monochromatic
#251344 #402074 #5A2DA4 #7643CB #9973D9

Accessibility & contrast

On white

8.95
#5A2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DA4
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DA4#FFFFFF#000000##FFFFFF
##5A2DA41.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#454B65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2da4;
/* rgb */ color: rgb(90, 45, 164);
/* oklch */ color: oklch(42.7% 0.179 294.9);
Tailwind
colors: {
  custom: {
    50: '#906ac0',
    500: '#5a2da4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2da4;
$custom-light: #906ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2da4",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 262.689,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42741,
    "c": 0.17896,
    "h": 294.9
  },
  "luminance": 0.06731
}

Semantic roles & 50–950 ramp

primary
#5A2DA4
secondary
#A1C06D
accent
#E048A6
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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