#5C2CAA#5C2CAA

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

Color values

HEX#5C2CAA
RGBrgb(92, 44, 170)
HSLhsl(263, 59%, 42%)
HSVhsv(263, 74%, 67%)
CMYKcmyk(45.9%, 74.1%, 0%, 33.3%)
CIE-LABlab(31.76, 48.88, -59.34)
CIE-LCHlch(31.76, 76.88, 309.48°)
OKLaboklab(43.36% 0.078 -0.17)
OKLCHoklch(43.36% 0.187 294.7)
XYZxyz(12.5680, 6.9786, 38.7072)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2CAA #7AAA2C
analogous
#2C3BAA #5C2CAA #9B2CAA
triadic
#5C2CAA #AA5C2C #2CAA5C
tetradic
#5C2CAA #AA2C3B #7AAA2C #2CAA9B
square
#5C2CAA #AA2C3B #7AAA2C #2CAA9B
split-complementary
#5C2CAA #AA9B2C #3BAA2C
monochromatic
#271349 #421F79 #5C2CAA #7944CF #9C75DB

Accessibility & contrast

On white

8.77
#5C2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2CAA
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2CAA#FFFFFF#000000##FFFFFF
##5C2CAA1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#464D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2caa;
/* rgb */ color: rgb(92, 44, 170);
/* oklch */ color: oklch(43.4% 0.187 294.7);
Tailwind
colors: {
  custom: {
    50: '#926ac4',
    500: '#5c2caa',
    950: '#000000',
  },
}
SCSS
$custom: #5c2caa;
$custom-light: #926ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2caa",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 262.857,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43358,
    "c": 0.18707,
    "h": 294.7
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#5C2CAA
secondary
#A3C36F
accent
#E246A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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