#5B2187#5B2187

#5B2187 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.161 H 306.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5B2187
RGBrgb(91, 33, 135)
HSLhsl(274, 61%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(32.6%, 75.6%, 0%, 47.1%)
CIE-LABlab(26.91, 44.88, -45.83)
CIE-LCHlch(26.91, 64.14, 314.40°)
OKLaboklab(39% 0.0949 -0.1303)
OKLCHoklch(39% 0.161 306.1)
XYZxyz(9.2305, 5.0612, 23.4076)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2187 #4D8721
analogous
#282187 #5B2187 #872180
triadic
#5B2187 #875B21 #21875B
tetradic
#5B2187 #872821 #4D8721 #218087
square
#5B2187 #872821 #4D8721 #218087
split-complementary
#5B2187 #808721 #218728
monochromatic
#190925 #3A1556 #5B2187 #7C2DB8 #9A4FD4

Accessibility & contrast

On white

10.44
#5B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2187
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2187#FFFFFF#000000##FFFFFF
##5B21871.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#533A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b2187;
/* rgb */ color: rgb(91, 33, 135);
/* oklch */ color: oklch(39.0% 0.161 306.1);
Tailwind
colors: {
  custom: {
    50: '#8e62ab',
    500: '#5b2187',
    950: '#000000',
  },
}
SCSS
$custom: #5b2187;
$custom-light: #8e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2187",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 274.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38998,
    "c": 0.16118,
    "h": 306.1
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#5B2187
secondary
#7BB74D
accent
#E44489
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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