#5C218C#5C218C

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

Color values

HEX#5C218C
RGBrgb(92, 33, 140)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(34.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(27.45, 46.28, -48.05)
CIE-LCHlch(27.45, 66.71, 313.92°)
OKLaboklab(39.54% 0.0953 -0.1368)
OKLCHoklch(39.54% 0.167 304.9)
XYZxyz(9.6900, 5.2565, 25.3100)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C218C #518C21
analogous
#27218C #5C218C #8C2187
triadic
#5C218C #8C5C21 #218C5C
tetradic
#5C218C #8C2721 #518C21 #21878C
square
#5C218C #8C2721 #518C21 #21878C
split-complementary
#5C218C #878C21 #218C27
monochromatic
#1B0A29 #3B155A #5C218C #7D2DBE #9B51D6

Accessibility & contrast

On white

10.24
#5C218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5C218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C218C
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C218C#FFFFFF#000000##FFFFFF
##5C218C1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c218c;
/* rgb */ color: rgb(92, 33, 140);
/* oklch */ color: oklch(39.5% 0.167 304.9);
Tailwind
colors: {
  custom: {
    50: '#8f63ae',
    500: '#5c218c',
    950: '#000000',
  },
}
SCSS
$custom: #5c218c;
$custom-light: #8f63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c218c",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 273.084,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3954,
    "c": 0.1667,
    "h": 304.9
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#5C218C
secondary
#7FB94F
accent
#E5438C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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