#5B216F#5B216F

#5B216F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.136 H 316.2°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5B216F
RGBrgb(91, 33, 111)
HSLhsl(285, 54%, 28%)
HSVhsv(285, 70%, 44%)
CMYKcmyk(18%, 70.3%, 0%, 56.5%)
CIE-LABlab(25.14, 39.29, -33.48)
CIE-LCHlch(25.14, 51.62, 319.56°)
OKLaboklab(37.18% 0.098 -0.094)
OKLCHoklch(37.18% 0.136 316.2)
XYZxyz(7.7270, 4.4598, 15.4897)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B216F #356F21
analogous
#34216F #5B216F #6F215C
triadic
#5B216F #6F5B21 #216F5B
tetradic
#5B216F #6F3421 #356F21 #215C6F
square
#5B216F #6F3421 #356F21 #215C6F
split-complementary
#5B216F #5C6F21 #216F34
monochromatic
#130718 #341340 #5B216F #822F9E #A543C7

Accessibility & contrast

On white

11.10
#5B216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B216F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B216F#FFFFFF#000000##FFFFFF
##5B216F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#213D6D
Tritanopia (blue-blind)
#5A3045
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b216f;
/* rgb */ color: rgb(91, 33, 111);
/* oklch */ color: oklch(37.2% 0.136 316.2);
Tailwind
colors: {
  custom: {
    50: '#8c6199',
    500: '#5b216f',
    950: '#000000',
  },
}
SCSS
$custom: #5b216f;
$custom-light: #8c6199;
$custom-dark: #000000;
JSON
{
  "hex": "#5b216f",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 284.615,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37175,
    "c": 0.13583,
    "h": 316.2
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#5B216F
secondary
#60A349
accent
#DE4A70
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B216F

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

Preview Lab → · Contrast checker → · Palette generator →

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