#5D217C#5D217C

#5D217C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.150 H 311.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5D217C
RGBrgb(93, 33, 124)
HSLhsl(280, 58%, 31%)
HSVhsv(280, 73%, 49%)
CMYKcmyk(25%, 73.4%, 0%, 51.4%)
CIE-LABlab(26.36, 42.70, -39.79)
CIE-LCHlch(26.36, 58.36, 317.02°)
OKLaboklab(38.41% 0.0996 -0.1124)
OKLCHoklch(38.41% 0.15 311.5)
XYZxyz(8.6955, 4.8703, 19.5469)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D217C #407C21
analogous
#2F217C #5D217C #7C216D
triadic
#5D217C #7C5D21 #217C5D
tetradic
#5D217C #7C2F21 #407C21 #216D7C
square
#5D217C #7C2F21 #407C21 #216D7C
split-complementary
#5D217C #6D7C21 #217C2F
monochromatic
#14071B #39144C #5D217C #812EAC #A149CF

Accessibility & contrast

On white

10.64
#5D217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D217C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D217C#FFFFFF#000000##FFFFFF
##5D217C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#153F7A
Tritanopia (blue-blind)
#59354C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d217c;
/* rgb */ color: rgb(93, 33, 124);
/* oklch */ color: oklch(38.4% 0.150 311.5);
Tailwind
colors: {
  custom: {
    50: '#8e62a2',
    500: '#5d217c',
    950: '#000000',
  },
}
SCSS
$custom: #5d217c;
$custom-light: #8e62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d217c",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 279.56,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38407,
    "c": 0.1502,
    "h": 311.5
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#5D217C
secondary
#6CAF4A
accent
#E1477B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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