#5D218B#5D218B

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

Color values

HEX#5D218B
RGBrgb(93, 33, 139)
HSLhsl(274, 62%, 34%)
HSVhsv(274, 76%, 55%)
CMYKcmyk(33.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(27.52, 46.23, -47.32)
CIE-LCHlch(27.52, 66.16, 314.33°)
OKLaboklab(39.59% 0.097 -0.1346)
OKLCHoklch(39.59% 0.166 305.8)
XYZxyz(9.7172, 5.2790, 24.9281)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D218B #4F8B21
analogous
#28218B #5D218B #8B2184
triadic
#5D218B #8B5D21 #218B5D
tetradic
#5D218B #8B2821 #4F8B21 #21848B
square
#5D218B #8B2821 #4F8B21 #21848B
split-complementary
#5D218B #848B21 #218B28
monochromatic
#1B0A28 #3C155A #5D218B #7E2DBC #9C51D6

Accessibility & contrast

On white

10.22
#5D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D218B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D218B#FFFFFF#000000##FFFFFF
##5D218B1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d218b;
/* rgb */ color: rgb(93, 33, 139);
/* oklch */ color: oklch(39.6% 0.166 305.8);
Tailwind
colors: {
  custom: {
    50: '#9063ae',
    500: '#5d218b',
    950: '#000000',
  },
}
SCSS
$custom: #5d218b;
$custom-light: #9063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d218b",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 273.962,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39588,
    "c": 0.16589,
    "h": 305.8
  },
  "luminance": 0.05279
}

Semantic roles & 50–950 ramp

primary
#5D218B
secondary
#7DB94F
accent
#E54389
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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