#5C228C#5C228C

#5C228C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.166 H 304.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5C228C
RGBrgb(92, 34, 140)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(34.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(27.61, 45.84, -47.80)
CIE-LCHlch(27.61, 66.23, 313.80°)
OKLaboklab(39.65% 0.0943 -0.136)
OKLCHoklch(39.65% 0.166 304.7)
XYZxyz(9.7182, 5.3129, 25.3194)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C228C #528C22
analogous
#27228C #5C228C #8C2287
triadic
#5C228C #8C5C22 #228C5C
tetradic
#5C228C #8C2722 #528C22 #22878C
square
#5C228C #8C2722 #528C22 #22878C
split-complementary
#5C228C #878C22 #228C27
monochromatic
#1B0A2A #3C165B #5C228C #7C2EBD #9A53D5

Accessibility & contrast

On white

10.18
#5C228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5C228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C228C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C228C#FFFFFF#000000##FFFFFF
##5C228C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#533C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c228c;
/* rgb */ color: rgb(92, 34, 140);
/* oklch */ color: oklch(39.6% 0.166 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f63ae',
    500: '#5c228c',
    950: '#000000',
  },
}
SCSS
$custom: #5c228c;
$custom-light: #8f63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c228c",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 272.83,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39649,
    "c": 0.16554,
    "h": 304.7
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#5C228C
secondary
#80B951
accent
#E4448C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C228C

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

Preview Lab → · Contrast checker → · Palette generator →

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