#5C2AAB#5C2AAB

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

Color values

HEX#5C2AAB
RGBrgb(92, 42, 171)
HSLhsl(263, 61%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(46.2%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.51, 50.09, -60.34)
CIE-LCHlch(31.51, 78.42, 309.70°)
OKLaboklab(43.21% 0.0796 -0.1729)
OKLCHoklch(43.21% 0.19 294.7)
XYZxyz(12.5903, 6.8712, 39.1831)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AAB #79AB2A
analogous
#2A39AB #5C2AAB #9D2AAB
triadic
#5C2AAB #AB5C2A #2AAB5C
tetradic
#5C2AAB #AB2A39 #79AB2A #2AAB9D
square
#5C2AAB #AB2A39 #79AB2A #2AAB9D
split-complementary
#5C2AAB #AB9D2A #39AB2A
monochromatic
#271249 #421E7A #5C2AAB #7942D1 #9C73DD

Accessibility & contrast

On white

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

On black

2.37
#5C2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5C2AAB#FFFFFF#000000##FFFFFF
##5C2AAB1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#454D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2aab;
/* rgb */ color: rgb(92, 42, 171);
/* oklch */ color: oklch(43.2% 0.190 294.7);
Tailwind
colors: {
  custom: {
    50: '#9269c5',
    500: '#5c2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aab;
$custom-light: #9269c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aab",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 263.256,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43211,
    "c": 0.19036,
    "h": 294.7
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#5C2AAB
secondary
#A2C46D
accent
#E444A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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