#5B218A#5B218A

#5B218A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.164 H 305.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5B218A
RGBrgb(91, 33, 138)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 54%)
CMYKcmyk(34.1%, 76.1%, 0%, 45.9%)
CIE-LABlab(27.15, 45.60, -47.31)
CIE-LCHlch(27.15, 65.71, 313.95°)
OKLaboklab(39.24% 0.0943 -0.1346)
OKLCHoklch(39.24% 0.164 305)
XYZxyz(9.4447, 5.1469, 24.5357)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B218A #508A21
analogous
#26218A #5B218A #8A2184
triadic
#5B218A #8A5B21 #218A5B
tetradic
#5B218A #8A2621 #508A21 #21848A
square
#5B218A #8A2621 #508A21 #21848A
split-complementary
#5B218A #848A21 #218A26
monochromatic
#1A0927 #3A1559 #5B218A #7C2DBB #9A50D5

Accessibility & contrast

On white

10.35
#5B218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5B218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B218A
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B218A#FFFFFF#000000##FFFFFF
##5B218A1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b218a;
/* rgb */ color: rgb(91, 33, 138);
/* oklch */ color: oklch(39.2% 0.164 305.0);
Tailwind
colors: {
  custom: {
    50: '#8e62ad',
    500: '#5b218a',
    950: '#000000',
  },
}
SCSS
$custom: #5b218a;
$custom-light: #8e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b218a",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 273.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39244,
    "c": 0.16435,
    "h": 305
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#5B218A
secondary
#7EB94E
accent
#E5438B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B218A

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

Preview Lab → · Contrast checker → · Palette generator →

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