#5B2198#5B2198

#5B2198 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.179 H 300.5°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5B2198
RGBrgb(91, 33, 152)
HSLhsl(269, 64%, 36%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(28.32, 49.05, -54.04)
CIE-LCHlch(28.32, 72.98, 312.23°)
OKLaboklab(40.44% 0.0909 -0.1544)
OKLCHoklch(40.44% 0.179 300.5)
XYZxyz(10.5243, 5.5788, 30.2220)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2198 #5E9821
analogous
#212398 #5B2198 #972198
triadic
#5B2198 #985B21 #21985B
tetradic
#5B2198 #982123 #5E9821 #219897
square
#5B2198 #982123 #5E9821 #219897
split-complementary
#5B2198 #989721 #239821
monochromatic
#1F0B33 #3D1666 #5B2198 #792CCA #9859DB

Accessibility & contrast

On white

9.93
#5B2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2198
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2198#FFFFFF#000000##FFFFFF
##5B21981.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4D415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2198;
/* rgb */ color: rgb(91, 33, 152);
/* oklch */ color: oklch(40.4% 0.179 300.5);
Tailwind
colors: {
  custom: {
    50: '#9063b7',
    500: '#5b2198',
    950: '#000000',
  },
}
SCSS
$custom: #5b2198;
$custom-light: #9063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2198",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 269.244,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40435,
    "c": 0.17915,
    "h": 300.5
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#5B2198
secondary
#8CBF56
accent
#E74096
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2198

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

Preview Lab → · Contrast checker → · Palette generator →

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