#5C22A6#5C22A6

#5C22A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.193 H 297.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5C22A6
RGBrgb(92, 34, 166)
HSLhsl(266, 66%, 39%)
HSVhsv(266, 80%, 65%)
CMYKcmyk(44.6%, 79.5%, 0%, 34.9%)
CIE-LABlab(29.84, 52.30, -60.07)
CIE-LCHlch(29.84, 79.64, 311.05°)
OKLaboklab(41.91% 0.0875 -0.1721)
OKLCHoklch(41.91% 0.193 297)
XYZxyz(11.8668, 6.1723, 36.6351)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C22A6 #6CA622
analogous
#222AA6 #5C22A6 #9E22A6
triadic
#5C22A6 #A65C22 #22A65C
tetradic
#5C22A6 #A6222A #6CA622 #22A69E
square
#5C22A6 #A6222A #6CA622 #22A69E
split-complementary
#5C22A6 #A69E22 #2AA622
monochromatic
#240D40 #401873 #5C22A6 #7930D5 #9A63DF

Accessibility & contrast

On white

9.40
#5C22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C22A6
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C22A6#FFFFFF#000000##FFFFFF
##5C22A61.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#484764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c22a6;
/* rgb */ color: rgb(92, 34, 166);
/* oklch */ color: oklch(41.9% 0.193 297.0);
Tailwind
colors: {
  custom: {
    50: '#9265c1',
    500: '#5c22a6',
    950: '#000000',
  },
}
SCSS
$custom: #5c22a6;
$custom-light: #9265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c22a6",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 266.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41907,
    "c": 0.19305,
    "h": 297
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#5C22A6
secondary
#98C45F
accent
#E93F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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