#5C22A5#5C22A5

#5C22A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.192 H 297.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5C22A5
RGBrgb(92, 34, 165)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(44.2%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.75, 52.05, -59.61)
CIE-LCHlch(29.75, 79.14, 311.13°)
OKLaboklab(41.82% 0.0878 -0.1707)
OKLCHoklch(41.82% 0.192 297.2)
XYZxyz(11.7754, 6.1357, 36.1539)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C22A5 #6BA522
analogous
#222AA5 #5C22A5 #9E22A5
triadic
#5C22A5 #A55C22 #22A55C
tetradic
#5C22A5 #A5222A #6BA522 #22A59E
square
#5C22A5 #A5222A #6BA522 #22A59E
split-complementary
#5C22A5 #A59E22 #2AA522
monochromatic
#230D40 #401872 #5C22A5 #7930D4 #9A63DF

Accessibility & contrast

On white

9.43
#5C22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C22A5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C22A5#FFFFFF#000000##FFFFFF
##5C22A51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#494663
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c22a5;
/* rgb */ color: rgb(92, 34, 165);
/* oklch */ color: oklch(41.8% 0.192 297.2);
Tailwind
colors: {
  custom: {
    50: '#9264c1',
    500: '#5c22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5c22a5;
$custom-light: #9264c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c22a5",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 266.565,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.19199,
    "h": 297.2
  },
  "luminance": 0.06136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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