#5C218F#5C218F

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

Color values

HEX#5C218F
RGBrgb(92, 33, 143)
HSLhsl(272, 63%, 35%)
HSVhsv(272, 77%, 56%)
CMYKcmyk(35.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.70, 47.01, -49.51)
CIE-LCHlch(27.70, 68.27, 313.51°)
OKLaboklab(39.79% 0.0946 -0.1411)
OKLCHoklch(39.79% 0.17 303.8)
XYZxyz(9.9143, 5.3462, 26.4909)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C218F #548F21
analogous
#25218F #5C218F #8F218B
triadic
#5C218F #8F5C21 #218F5C
tetradic
#5C218F #8F2521 #548F21 #218B8F
square
#5C218F #8F2521 #548F21 #218B8F
split-complementary
#5C218F #8B8F21 #218F25
monochromatic
#1C0A2C #3C165D #5C218F #7C2CC1 #9A53D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C218F#FFFFFF#000000##FFFFFF
##5C218F1.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)
#004092
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#523D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c218f;
/* rgb */ color: rgb(92, 33, 143);
/* oklch */ color: oklch(39.8% 0.170 303.8);
Tailwind
colors: {
  custom: {
    50: '#8f63b1',
    500: '#5c218f',
    950: '#000000',
  },
}
SCSS
$custom: #5c218f;
$custom-light: #8f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c218f",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 272.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39789,
    "c": 0.16986,
    "h": 303.8
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#5C218F
secondary
#82BB51
accent
#E6428E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C218F

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

Preview Lab → · Contrast checker → · Palette generator →

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