#5D217F#5D217F

#5D217F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.153 H 310.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5D217F
RGBrgb(93, 33, 127)
HSLhsl(278, 59%, 31%)
HSVhsv(278, 74%, 50%)
CMYKcmyk(26.8%, 74%, 0%, 50.2%)
CIE-LABlab(26.58, 43.39, -41.32)
CIE-LCHlch(26.58, 59.92, 316.40°)
OKLaboklab(38.64% 0.0991 -0.117)
OKLCHoklch(38.64% 0.153 310.3)
XYZxyz(8.8881, 4.9474, 20.5613)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D217F #437F21
analogous
#2E217F #5D217F #7F2172
triadic
#5D217F #7F5D21 #217F5D
tetradic
#5D217F #7F2E21 #437F21 #21727F
square
#5D217F #7F2E21 #437F21 #21727F
split-complementary
#5D217F #727F21 #217F2E
monochromatic
#16081E #39144E #5D217F #812EB0 #A04AD0

Accessibility & contrast

On white

10.56
#5D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D217F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D217F#FFFFFF#000000##FFFFFF
##5D217F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#0F407D
Tritanopia (blue-blind)
#58364E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d217f;
/* rgb */ color: rgb(93, 33, 127);
/* oklch */ color: oklch(38.6% 0.153 310.3);
Tailwind
colors: {
  custom: {
    50: '#8f62a5',
    500: '#5d217f',
    950: '#000000',
  },
}
SCSS
$custom: #5d217f;
$custom-light: #8f62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d217f",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 278.298,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38636,
    "c": 0.15332,
    "h": 310.3
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#5D217F
secondary
#70B24A
accent
#E2467E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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