#5C229C#5C229C

#5C229C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.182 H 299.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5C229C
RGBrgb(92, 34, 156)
HSLhsl(269, 64%, 37%)
HSVhsv(269, 78%, 61%)
CMYKcmyk(41%, 78.2%, 0%, 38.8%)
CIE-LABlab(28.95, 49.79, -55.45)
CIE-LCHlch(28.95, 74.53, 311.92°)
OKLaboklab(41.01% 0.0904 -0.1585)
OKLCHoklch(41.01% 0.183 299.7)
XYZxyz(10.9849, 5.8195, 31.9906)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C229C #629C22
analogous
#22259C #5C229C #99229C
triadic
#5C229C #9C5C22 #229C5C
tetradic
#5C229C #9C2225 #629C22 #229C99
square
#5C229C #9C2225 #629C22 #229C99
split-complementary
#5C229C #9C9922 #259C22
monochromatic
#210C38 #3E176A #5C229C #7A2DCE #995DDC

Accessibility & contrast

On white

9.70
#5C229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5C229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C229C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C229C#FFFFFF#000000##FFFFFF
##5C229C1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4D435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c229c;
/* rgb */ color: rgb(92, 34, 156);
/* oklch */ color: oklch(41.0% 0.182 299.7);
Tailwind
colors: {
  custom: {
    50: '#9164ba',
    500: '#5c229c',
    950: '#000000',
  },
}
SCSS
$custom: #5c229c;
$custom-light: #9164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c229c",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 268.525,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.1825,
    "h": 299.7
  },
  "luminance": 0.0582
}

Semantic roles & 50–950 ramp

primary
#5C229C
secondary
#8FC05A
accent
#E74198
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C229C

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

Preview Lab → · Contrast checker → · Palette generator →

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