#5D218F#5D218F

#5D218F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.170 H 304.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5D218F
RGBrgb(93, 33, 143)
HSLhsl(273, 63%, 35%)
HSVhsv(273, 77%, 56%)
CMYKcmyk(35%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.84, 47.19, -49.28)
CIE-LCHlch(27.84, 68.23, 313.76°)
OKLaboklab(39.92% 0.0961 -0.1403)
OKLCHoklch(39.92% 0.17 304.4)
XYZxyz(10.0148, 5.3981, 26.4956)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D218F #538F21
analogous
#26218F #5D218F #8F218A
triadic
#5D218F #8F5D21 #218F5D
tetradic
#5D218F #8F2621 #538F21 #218A8F
square
#5D218F #8F2621 #538F21 #218A8F
split-complementary
#5D218F #8A8F21 #218F26
monochromatic
#1C0A2C #3D165D #5D218F #7D2CC1 #9B53D7

Accessibility & contrast

On white

10.10
#5D218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D218F
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D218F#FFFFFF#000000##FFFFFF
##5D218F1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#533D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d218f;
/* rgb */ color: rgb(93, 33, 143);
/* oklch */ color: oklch(39.9% 0.170 304.4);
Tailwind
colors: {
  custom: {
    50: '#9063b1',
    500: '#5d218f',
    950: '#000000',
  },
}
SCSS
$custom: #5d218f;
$custom-light: #9063b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d218f",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 272.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39919,
    "c": 0.17008,
    "h": 304.4
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#5D218F
secondary
#81BB51
accent
#E6428C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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