#5B218E#5B218E

#5B218E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.169 H 303.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5B218E
RGBrgb(91, 33, 142)
HSLhsl(272, 62%, 34%)
HSVhsv(272, 77%, 56%)
CMYKcmyk(35.9%, 76.8%, 0%, 44.3%)
CIE-LABlab(27.48, 46.58, -49.26)
CIE-LCHlch(27.48, 67.79, 313.40°)
OKLaboklab(39.58% 0.0934 -0.1404)
OKLCHoklch(39.58% 0.169 303.6)
XYZxyz(9.7396, 5.2649, 26.0891)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B218E #548E21
analogous
#25218E #5B218E #8E218B
triadic
#5B218E #8E5B21 #218E5B
tetradic
#5B218E #8E2521 #548E21 #218B8E
square
#5B218E #8E2521 #548E21 #218B8E
split-complementary
#5B218E #8B8E21 #218E25
monochromatic
#1B0A2B #3B155C #5B218E #7B2DC0 #9952D7

Accessibility & contrast

On white

10.23
#5B218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B218E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B218E#FFFFFF#000000##FFFFFF
##5B218E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#513C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b218e;
/* rgb */ color: rgb(91, 33, 142);
/* oklch */ color: oklch(39.6% 0.169 303.6);
Tailwind
colors: {
  custom: {
    50: '#8e63b0',
    500: '#5b218e',
    950: '#000000',
  },
}
SCSS
$custom: #5b218e;
$custom-light: #8e63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b218e",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 271.927,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39577,
    "c": 0.16859,
    "h": 303.6
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

primary
#5B218E
secondary
#82BA50
accent
#E5428F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B218E

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

Preview Lab → · Contrast checker → · Palette generator →

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