#5A2DAB#5A2DAB

#5A2DAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.187 H 293.3°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5A2DAB
RGBrgb(90, 45, 171)
HSLhsl(261, 58%, 42%)
HSVhsv(261, 74%, 67%)
CMYKcmyk(47.4%, 73.7%, 0%, 32.9%)
CIE-LABlab(31.78, 48.32, -59.90)
CIE-LCHlch(31.78, 76.97, 308.89°)
OKLaboklab(43.35% 0.0739 -0.1717)
OKLCHoklch(43.35% 0.187 293.3)
XYZxyz(12.5035, 6.9903, 39.2107)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DAB #7EAB2D
analogous
#2D3FAB #5A2DAB #992DAB
triadic
#5A2DAB #AB5A2D #2DAB5A
tetradic
#5A2DAB #AB2D3F #7EAB2D #2DAB99
square
#5A2DAB #AB2D3F #7EAB2D #2DAB99
split-complementary
#5A2DAB #AB992D #3FAB2D
monochromatic
#27144A #41207B #5A2DAB #7747CE #9B77DB

Accessibility & contrast

On white

8.76
#5A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DAB
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DAB#FFFFFF#000000##FFFFFF
##5A2DAB1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#414E69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2dab;
/* rgb */ color: rgb(90, 45, 171);
/* oklch */ color: oklch(43.4% 0.187 293.3);
Tailwind
colors: {
  custom: {
    50: '#906ac5',
    500: '#5a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dab;
$custom-light: #906ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dab",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 261.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43351,
    "c": 0.18698,
    "h": 293.3
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#5A2DAB
secondary
#A6C371
accent
#E246AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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