#5A2DA1#5A2DA1

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

Color values

HEX#5A2DA1
RGBrgb(90, 45, 161)
HSLhsl(263, 56%, 40%)
HSVhsv(263, 72%, 63%)
CMYKcmyk(44.1%, 72%, 0%, 36.9%)
CIE-LABlab(30.93, 45.61, -55.27)
CIE-LCHlch(30.93, 71.66, 309.53°)
OKLaboklab(42.48% 0.0761 -0.1581)
OKLCHoklch(42.48% 0.175 295.7)
XYZxyz(11.5861, 6.6234, 34.3793)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DA1 #74A12D
analogous
#2D3AA1 #5A2DA1 #942DA1
triadic
#5A2DA1 #A15A2D #2DA15A
tetradic
#5A2DA1 #A12D3A #74A12D #2DA194
square
#5A2DA1 #A12D3A #74A12D #2DA194
split-complementary
#5A2DA1 #A1942D #3AA12D
monochromatic
#251241 #3F2071 #5A2DA1 #7641CA #9971D7

Accessibility & contrast

On white

9.03
#5A2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2DA1
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DA1#FFFFFF#000000##FFFFFF
##5A2DA11.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#474A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2da1;
/* rgb */ color: rgb(90, 45, 161);
/* oklch */ color: oklch(42.5% 0.175 295.7);
Tailwind
colors: {
  custom: {
    50: '#8f6abe',
    500: '#5a2da1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2da1;
$custom-light: #8f6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2da1",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 263.276,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42484,
    "c": 0.17549,
    "h": 295.7
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#5A2DA1
secondary
#9EBF6B
accent
#E048A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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