#5B218D#5B218D

#5B218D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.168 H 304.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5B218D
RGBrgb(91, 33, 141)
HSLhsl(272, 62%, 34%)
HSVhsv(272, 77%, 55%)
CMYKcmyk(35.5%, 76.6%, 0%, 44.7%)
CIE-LABlab(27.39, 46.33, -48.78)
CIE-LCHlch(27.39, 67.27, 313.53°)
OKLaboklab(39.49% 0.0936 -0.1389)
OKLCHoklch(39.49% 0.168 304)
XYZxyz(9.6648, 5.2350, 25.6954)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B218D #538D21
analogous
#25218D #5B218D #8D2189
triadic
#5B218D #8D5B21 #218D5B
tetradic
#5B218D #8D2521 #538D21 #21898D
square
#5B218D #8D2521 #538D21 #21898D
split-complementary
#5B218D #898D21 #218D25
monochromatic
#1B0A2A #3B155B #5B218D #7B2DBF #9952D6

Accessibility & contrast

On white

10.26
#5B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B218D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B218D#FFFFFF#000000##FFFFFF
##5B218D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#513C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b218d;
/* rgb */ color: rgb(91, 33, 141);
/* oklch */ color: oklch(39.5% 0.168 304.0);
Tailwind
colors: {
  custom: {
    50: '#8e63af',
    500: '#5b218d',
    950: '#000000',
  },
}
SCSS
$custom: #5b218d;
$custom-light: #8e63af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b218d",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 272.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.16753,
    "h": 304
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#5B218D
secondary
#81BA50
accent
#E5438E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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