#5A2CAA#5A2CAA

#5A2CAA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.187 H 293.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5A2CAA
RGBrgb(90, 44, 170)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(47.1%, 74.1%, 0%, 33.3%)
CIE-LABlab(31.52, 48.54, -59.73)
CIE-LCHlch(31.52, 76.97, 309.10°)
OKLaboklab(43.14% 0.0751 -0.1712)
OKLCHoklch(43.14% 0.187 293.7)
XYZxyz(12.3708, 6.8769, 38.6980)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CAA #7CAA2C
analogous
#2C3DAA #5A2CAA #992CAA
triadic
#5A2CAA #AA5A2C #2CAA5A
tetradic
#5A2CAA #AA2C3D #7CAA2C #2CAA99
square
#5A2CAA #AA2C3D #7CAA2C #2CAA99
split-complementary
#5A2CAA #AA992C #3DAA2C
monochromatic
#271349 #401F79 #5A2CAA #7744CF #9A75DB

Accessibility & contrast

On white

8.84
#5A2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5A2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CAA
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CAA#FFFFFF#000000##FFFFFF
##5A2CAA1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#424D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2caa;
/* rgb */ color: rgb(90, 44, 170);
/* oklch */ color: oklch(43.1% 0.187 293.7);
Tailwind
colors: {
  custom: {
    50: '#906ac4',
    500: '#5a2caa',
    950: '#000000',
  },
}
SCSS
$custom: #5a2caa;
$custom-light: #906ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2caa",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 261.905,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43141,
    "c": 0.18695,
    "h": 293.7
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#5A2CAA
secondary
#A4C36F
accent
#E246A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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