#5C22A8#5C22A8

#5C22A8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.195 H 296.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5C22A8
RGBrgb(92, 34, 168)
HSLhsl(266, 66%, 40%)
HSVhsv(266, 80%, 66%)
CMYKcmyk(45.2%, 79.8%, 0%, 34.1%)
CIE-LABlab(30.03, 52.81, -60.97)
CIE-LCHlch(30.03, 80.66, 310.90°)
OKLaboklab(42.09% 0.0869 -0.1747)
OKLCHoklch(42.09% 0.195 296.4)
XYZxyz(12.0517, 6.2462, 37.6089)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C22A8 #6EA822
analogous
#222BA8 #5C22A8 #9F22A8
triadic
#5C22A8 #A85C22 #22A85C
tetradic
#5C22A8 #A8222B #6EA822 #22A89F
square
#5C22A8 #A8222B #6EA822 #22A89F
split-complementary
#5C22A8 #A89F22 #2BA822
monochromatic
#240D42 #401875 #5C22A8 #7932D5 #9A65E0

Accessibility & contrast

On white

9.34
#5C22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C22A8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C22A8#FFFFFF#000000##FFFFFF
##5C22A81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#474865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c22a8;
/* rgb */ color: rgb(92, 34, 168);
/* oklch */ color: oklch(42.1% 0.195 296.4);
Tailwind
colors: {
  custom: {
    50: '#9265c3',
    500: '#5c22a8',
    950: '#000000',
  },
}
SCSS
$custom: #5c22a8;
$custom-light: #9265c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c22a8",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 265.97,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42089,
    "c": 0.19515,
    "h": 296.4
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#5C22A8
secondary
#9AC561
accent
#E93F9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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