#5B218F#5B218F

#5B218F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.170 H 303.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5B218F
RGBrgb(91, 33, 143)
HSLhsl(272, 63%, 35%)
HSVhsv(272, 77%, 56%)
CMYKcmyk(36.4%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.56, 46.82, -49.75)
CIE-LCHlch(27.56, 68.32, 313.27°)
OKLaboklab(39.66% 0.0931 -0.1418)
OKLCHoklch(39.66% 0.17 303.3)
XYZxyz(9.8150, 5.2950, 26.4862)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B218F #558F21
analogous
#24218F #5B218F #8F218C
triadic
#5B218F #8F5B21 #218F5B
tetradic
#5B218F #8F2421 #558F21 #218C8F
square
#5B218F #8F2421 #558F21 #218C8F
split-complementary
#5B218F #8C8F21 #218F24
monochromatic
#1C0A2C #3B165D #5B218F #7B2CC1 #9953D7

Accessibility & contrast

On white

10.20
#5B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B218F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B218F#FFFFFF#000000##FFFFFF
##5B218F1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#503D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b218f;
/* rgb */ color: rgb(91, 33, 143);
/* oklch */ color: oklch(39.7% 0.170 303.3);
Tailwind
colors: {
  custom: {
    50: '#8f63b1',
    500: '#5b218f',
    950: '#000000',
  },
}
SCSS
$custom: #5b218f;
$custom-light: #8f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b218f",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 271.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39661,
    "c": 0.16965,
    "h": 303.3
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#5B218F
secondary
#83BB51
accent
#E6428F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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