#5C229A#5C229A

#5C229A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.180 H 300.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5C229A
RGBrgb(92, 34, 154)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.3%, 77.9%, 0%, 39.6%)
CIE-LABlab(28.78, 49.29, -54.52)
CIE-LCHlch(28.78, 73.50, 312.12°)
OKLaboklab(40.84% 0.091 -0.1558)
OKLCHoklch(40.84% 0.18 300.3)
XYZxyz(10.8169, 5.7524, 31.1060)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229A #609A22
analogous
#22249A #5C229A #98229A
triadic
#5C229A #9A5C22 #229A5C
tetradic
#5C229A #9A2224 #609A22 #229A98
square
#5C229A #9A2224 #609A22 #229A98
split-complementary
#5C229A #9A9822 #249A22
monochromatic
#200C36 #3E1768 #5C229A #7A2DCC #995BDB

Accessibility & contrast

On white

9.77
#5C229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5C229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C229A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229A#FFFFFF#000000##FFFFFF
##5C229A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4E425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c229a;
/* rgb */ color: rgb(92, 34, 154);
/* oklch */ color: oklch(40.8% 0.180 300.3);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5c229a',
    950: '#000000',
  },
}
SCSS
$custom: #5c229a;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229a",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 269,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.18039,
    "h": 300.3
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#5C229A
secondary
#8EBF58
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229A

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

Preview Lab → · Contrast checker → · Palette generator →

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