#5B218B#5B218B

#5B218B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.165 H 304.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5B218B
RGBrgb(91, 33, 139)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 76%, 55%)
CMYKcmyk(34.5%, 76.3%, 0%, 45.5%)
CIE-LABlab(27.23, 45.84, -47.80)
CIE-LCHlch(27.23, 66.23, 313.80°)
OKLaboklab(39.33% 0.094 -0.1361)
OKLCHoklch(39.33% 0.165 304.6)
XYZxyz(9.5174, 5.1760, 24.9188)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B218B #518B21
analogous
#26218B #5B218B #8B2186
triadic
#5B218B #8B5B21 #218B5B
tetradic
#5B218B #8B2621 #518B21 #21868B
square
#5B218B #8B2621 #518B21 #21868B
split-complementary
#5B218B #868B21 #218B26
monochromatic
#1A0A28 #3B155A #5B218B #7B2DBC #9951D6

Accessibility & contrast

On white

10.32
#5B218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B218B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B218B#FFFFFF#000000##FFFFFF
##5B218B1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#523B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b218b;
/* rgb */ color: rgb(91, 33, 139);
/* oklch */ color: oklch(39.3% 0.165 304.6);
Tailwind
colors: {
  custom: {
    50: '#8e63ae',
    500: '#5b218b',
    950: '#000000',
  },
}
SCSS
$custom: #5b218b;
$custom-light: #8e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b218b",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 272.83,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39327,
    "c": 0.16541,
    "h": 304.6
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#5B218B
secondary
#7FB94F
accent
#E5438C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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