#5C22A0#5C22A0

#5C22A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.187 H 298.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5C22A0
RGBrgb(92, 34, 160)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 79%, 63%)
CMYKcmyk(42.5%, 78.8%, 0%, 37.3%)
CIE-LABlab(29.30, 50.79, -57.31)
CIE-LCHlch(29.30, 76.58, 311.55°)
OKLaboklab(41.37% 0.0893 -0.164)
OKLCHoklch(41.37% 0.187 298.6)
XYZxyz(11.3292, 5.9573, 33.8039)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C22A0 #66A022
analogous
#2227A0 #5C22A0 #9B22A0
triadic
#5C22A0 #A05C22 #22A05C
tetradic
#5C22A0 #A02227 #66A022 #22A09B
square
#5C22A0 #A02227 #66A022 #22A09B
split-complementary
#5C22A0 #A09B22 #27A022
monochromatic
#220D3B #3F176E #5C22A0 #792DD2 #995FDD

Accessibility & contrast

On white

9.58
#5C22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5C22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C22A0
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C22A0#FFFFFF#000000##FFFFFF
##5C22A01.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#4B4461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c22a0;
/* rgb */ color: rgb(92, 34, 160);
/* oklch */ color: oklch(41.4% 0.187 298.6);
Tailwind
colors: {
  custom: {
    50: '#9164bd',
    500: '#5c22a0',
    950: '#000000',
  },
}
SCSS
$custom: #5c22a0;
$custom-light: #9164bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c22a0",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 267.619,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41366,
    "c": 0.18672,
    "h": 298.6
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#5C22A0
secondary
#93C25C
accent
#E8409B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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