#5C2AAA#5C2AAA

#5C2AAA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.189 H 294.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5C2AAA
RGBrgb(92, 42, 170)
HSLhsl(263, 60%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(45.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(31.42, 49.82, -59.88)
CIE-LCHlch(31.42, 77.90, 309.76°)
OKLaboklab(43.12% 0.0798 -0.1716)
OKLCHoklch(43.12% 0.189 294.9)
XYZxyz(12.4953, 6.8332, 38.6830)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2AAA #78AA2A
analogous
#2A38AA #5C2AAA #9C2AAA
triadic
#5C2AAA #AA5C2A #2AAA5C
tetradic
#5C2AAA #AA2A38 #78AA2A #2AAA9C
square
#5C2AAA #AA2A38 #78AA2A #2AAA9C
split-complementary
#5C2AAA #AA9C2A #38AA2A
monochromatic
#271248 #411E79 #5C2AAA #7941D0 #9C72DC

Accessibility & contrast

On white

8.87
#5C2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2AAA
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2AAA#FFFFFF#000000##FFFFFF
##5C2AAA1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#464C68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2aaa;
/* rgb */ color: rgb(92, 42, 170);
/* oklch */ color: oklch(43.1% 0.189 294.9);
Tailwind
colors: {
  custom: {
    50: '#9269c4',
    500: '#5c2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5c2aaa;
$custom-light: #9269c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2aaa",
  "rgb": {
    "r": 92,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 263.438,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43123,
    "c": 0.18925,
    "h": 294.9
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#5C2AAA
secondary
#A1C36C
accent
#E444A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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