#5C218B#5C218B

#5C218B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.166 H 305.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5C218B
RGBrgb(92, 33, 139)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(33.8%, 76.3%, 0%, 45.5%)
CIE-LABlab(27.37, 46.04, -47.56)
CIE-LCHlch(27.37, 66.19, 314.07°)
OKLaboklab(39.46% 0.0955 -0.1353)
OKLCHoklch(39.46% 0.166 305.2)
XYZxyz(9.6166, 5.2272, 24.9234)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C218B #508B21
analogous
#27218B #5C218B #8B2185
triadic
#5C218B #8B5C21 #218B5C
tetradic
#5C218B #8B2721 #508B21 #21858B
square
#5C218B #8B2721 #508B21 #21858B
split-complementary
#5C218B #858B21 #218B27
monochromatic
#1B0A28 #3B155A #5C218B #7D2DBC #9B51D6

Accessibility & contrast

On white

10.27
#5C218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C218B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C218B#FFFFFF#000000##FFFFFF
##5C218B1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#533B54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c218b;
/* rgb */ color: rgb(92, 33, 139);
/* oklch */ color: oklch(39.5% 0.166 305.2);
Tailwind
colors: {
  custom: {
    50: '#8f63ae',
    500: '#5c218b',
    950: '#000000',
  },
}
SCSS
$custom: #5c218b;
$custom-light: #8f63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c218b",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 273.396,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.16565,
    "h": 305.2
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#5C218B
secondary
#7EB94F
accent
#E5438B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C218B

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

Preview Lab → · Contrast checker → · Palette generator →

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