#5B217B#5B217B

#5B217B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.148 H 310.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5B217B
RGBrgb(91, 33, 123)
HSLhsl(279, 58%, 31%)
HSVhsv(279, 73%, 48%)
CMYKcmyk(26%, 73.2%, 0%, 51.8%)
CIE-LABlab(25.99, 42.03, -39.77)
CIE-LCHlch(25.99, 57.86, 316.58°)
OKLaboklab(38.05% 0.0969 -0.1125)
OKLCHoklch(38.05% 0.148 310.7)
XYZxyz(8.4327, 4.7421, 19.2061)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B217B #417B21
analogous
#2E217B #5B217B #7B216E
triadic
#5B217B #7B5B21 #217B5B
tetradic
#5B217B #7B2E21 #417B21 #216E7B
square
#5B217B #7B2E21 #417B21 #216E7B
split-complementary
#5B217B #6E7B21 #217B2E
monochromatic
#14071A #37144B #5B217B #7F2EAB #9F48CE

Accessibility & contrast

On white

10.78
#5B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B217B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B217B#FFFFFF#000000##FFFFFF
##5B217B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#133E79
Tritanopia (blue-blind)
#57354B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b217b;
/* rgb */ color: rgb(91, 33, 123);
/* oklch */ color: oklch(38.1% 0.148 310.7);
Tailwind
colors: {
  custom: {
    50: '#8d62a2',
    500: '#5b217b',
    950: '#000000',
  },
}
SCSS
$custom: #5b217b;
$custom-light: #8d62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b217b",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 278.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.14846,
    "h": 310.7
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#5B217B
secondary
#6DAE4A
accent
#E1477E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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