#5C228D#5C228D

#5C228D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.167 H 304.4°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5C228D
RGBrgb(92, 34, 141)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(34.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(27.69, 46.08, -48.29)
CIE-LCHlch(27.69, 66.75, 313.66°)
OKLaboklab(39.73% 0.0941 -0.1375)
OKLCHoklch(39.73% 0.167 304.4)
XYZxyz(9.7923, 5.3425, 25.7095)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C228D #538D22
analogous
#26228D #5C228D #8D2289
triadic
#5C228D #8D5C22 #228D5C
tetradic
#5C228D #8D2622 #538D22 #22898D
square
#5C228D #8D2622 #538D22 #22898D
split-complementary
#5C228D #898D22 #228D26
monochromatic
#1C0A2A #3C165C #5C228D #7C2EBE #9A54D6

Accessibility & contrast

On white

10.15
#5C228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C228D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C228D#FFFFFF#000000##FFFFFF
##5C228D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#533C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c228d;
/* rgb */ color: rgb(92, 34, 141);
/* oklch */ color: oklch(39.7% 0.167 304.4);
Tailwind
colors: {
  custom: {
    50: '#8f63af',
    500: '#5c228d',
    950: '#000000',
  },
}
SCSS
$custom: #5c228d;
$custom-light: #8f63af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c228d",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 272.523,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39731,
    "c": 0.16661,
    "h": 304.4
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#5C228D
secondary
#81B951
accent
#E4448D
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C228D

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

Preview Lab → · Contrast checker → · Palette generator →

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