#5B217D#5B217D

#5B217D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.151 H 309.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5B217D
RGBrgb(91, 33, 125)
HSLhsl(278, 58%, 31%)
HSVhsv(278, 74%, 49%)
CMYKcmyk(27.2%, 73.6%, 0%, 51%)
CIE-LABlab(26.14, 42.49, -40.80)
CIE-LCHlch(26.14, 58.91, 316.17°)
OKLaboklab(38.21% 0.0966 -0.1155)
OKLCHoklch(38.21% 0.151 309.9)
XYZxyz(8.5592, 4.7927, 19.8723)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B217D #437D21
analogous
#2D217D #5B217D #7D2171
triadic
#5B217D #7D5B21 #217D5B
tetradic
#5B217D #7D2D21 #437D21 #21717D
square
#5B217D #7D2D21 #437D21 #21717D
split-complementary
#5B217D #717D21 #217D2D
monochromatic
#15071C #38144D #5B217D #7E2EAD #9E49CF

Accessibility & contrast

On white

10.72
#5B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B217D
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B217D#FFFFFF#000000##FFFFFF
##5B217D1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#0F3F7B
Tritanopia (blue-blind)
#56354D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b217d;
/* rgb */ color: rgb(91, 33, 125);
/* oklch */ color: oklch(38.2% 0.151 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d62a3',
    500: '#5b217d',
    950: '#000000',
  },
}
SCSS
$custom: #5b217d;
$custom-light: #8d62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b217d",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 277.826,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38207,
    "c": 0.15058,
    "h": 309.9
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#5B217D
secondary
#70B04A
accent
#E14680
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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