#5D218C#5D218C

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

Color values

HEX#5D218C
RGBrgb(93, 33, 140)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(33.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(27.60, 46.47, -47.81)
CIE-LCHlch(27.60, 66.68, 314.18°)
OKLaboklab(39.67% 0.0968 -0.136)
OKLCHoklch(39.67% 0.167 305.4)
XYZxyz(9.7906, 5.3084, 25.3147)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D218C #508C21
analogous
#28218C #5D218C #8C2186
triadic
#5D218C #8C5D21 #218C5D
tetradic
#5D218C #8C2821 #508C21 #21868C
square
#5D218C #8C2821 #508C21 #21868C
split-complementary
#5D218C #868C21 #218C28
monochromatic
#1B0A29 #3C155A #5D218C #7E2DBE #9C51D6

Accessibility & contrast

On white

10.19
#5D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D218C
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D218C#FFFFFF#000000##FFFFFF
##5D218C1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#543B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d218c;
/* rgb */ color: rgb(93, 33, 140);
/* oklch */ color: oklch(39.7% 0.167 305.4);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5d218c',
    950: '#000000',
  },
}
SCSS
$custom: #5d218c;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d218c",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 273.645,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3967,
    "c": 0.16694,
    "h": 305.4
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#5D218C
secondary
#7EB94F
accent
#E5438A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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