#5B2189#5B2189

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

Color values

HEX#5B2189
RGBrgb(91, 33, 137)
HSLhsl(273, 61%, 33%)
HSVhsv(273, 76%, 54%)
CMYKcmyk(33.6%, 75.9%, 0%, 46.3%)
CIE-LABlab(27.07, 45.36, -46.82)
CIE-LCHlch(27.07, 65.19, 314.09°)
OKLaboklab(39.16% 0.0945 -0.1332)
OKLCHoklch(39.16% 0.163 305.3)
XYZxyz(9.3726, 5.1181, 24.1562)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2189 #4F8921
analogous
#272189 #5B2189 #892183
triadic
#5B2189 #895B21 #21895B
tetradic
#5B2189 #892721 #4F8921 #218389
square
#5B2189 #892721 #4F8921 #218389
split-complementary
#5B2189 #838921 #218927
monochromatic
#190926 #3A1558 #5B2189 #7C2DBA #9A50D5

Accessibility & contrast

On white

10.38
#5B2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2189
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2189#FFFFFF#000000##FFFFFF
##5B21891.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#533A53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2189;
/* rgb */ color: rgb(91, 33, 137);
/* oklch */ color: oklch(39.2% 0.163 305.3);
Tailwind
colors: {
  custom: {
    50: '#8e62ac',
    500: '#5b2189',
    950: '#000000',
  },
}
SCSS
$custom: #5b2189;
$custom-light: #8e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2189",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 273.462,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39162,
    "c": 0.16329,
    "h": 305.3
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#5B2189
secondary
#7DB84E
accent
#E4448B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2189

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

Preview Lab → · Contrast checker → · Palette generator →

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