#5C218D#5C218D

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

Color values

HEX#5C218D
RGBrgb(92, 33, 141)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 77%, 55%)
CMYKcmyk(34.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(27.54, 46.52, -48.54)
CIE-LCHlch(27.54, 67.23, 313.78°)
OKLaboklab(39.62% 0.0951 -0.1382)
OKLCHoklch(39.62% 0.168 304.5)
XYZxyz(9.7641, 5.2862, 25.7001)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C218D #528D21
analogous
#26218D #5C218D #8D2188
triadic
#5C218D #8D5C21 #218D5C
tetradic
#5C218D #8D2621 #528D21 #21888D
square
#5C218D #8D2621 #528D21 #21888D
split-complementary
#5C218D #888D21 #218D26
monochromatic
#1B0A2A #3C155B #5C218D #7C2DBF #9A52D6

Accessibility & contrast

On white

10.21
#5C218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C218D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C218D#FFFFFF#000000##FFFFFF
##5C218D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.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: #5c218d;
/* rgb */ color: rgb(92, 33, 141);
/* oklch */ color: oklch(39.6% 0.168 304.5);
Tailwind
colors: {
  custom: {
    50: '#8f63af',
    500: '#5c218d',
    950: '#000000',
  },
}
SCSS
$custom: #5c218d;
$custom-light: #8f63af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c218d",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 272.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39622,
    "c": 0.16776,
    "h": 304.5
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#5C218D
secondary
#80BA50
accent
#E5438C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C218D

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

Preview Lab → · Contrast checker → · Palette generator →

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