#5B2C87#5B2C87

#5B2C87 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.147 H 304.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5B2C87
RGBrgb(91, 44, 135)
HSLhsl(271, 51%, 35%)
HSVhsv(271, 67%, 53%)
CMYKcmyk(32.6%, 67.4%, 0%, 47.1%)
CIE-LABlab(28.84, 39.49, -42.71)
CIE-LCHlch(28.84, 58.16, 312.76°)
OKLaboklab(40.38% 0.0826 -0.1212)
OKLCHoklch(40.38% 0.147 304.3)
XYZxyz(9.5873, 5.7748, 23.5265)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C87 #58872C
analogous
#2D2C87 #5B2C87 #872C85
triadic
#5B2C87 #875B2C #2C875B
tetradic
#5B2C87 #872D2C #58872C #2C8587
square
#5B2C87 #872D2C #58872C #2C8587
split-complementary
#5B2C87 #85872C #2C872D
monochromatic
#1D0E2B #3C1D59 #5B2C87 #7A3BB5 #9862CC

Accessibility & contrast

On white

9.74
#5B2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C87
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C87#FFFFFF#000000##FFFFFF
##5B2C871.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#0F4485
Tritanopia (blue-blind)
#534055
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2c87;
/* rgb */ color: rgb(91, 44, 135);
/* oklch */ color: oklch(40.4% 0.147 304.3);
Tailwind
colors: {
  custom: {
    50: '#8d68ab',
    500: '#5b2c87',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c87;
$custom-light: #8d68ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c87",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 270.989,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40375,
    "c": 0.14667,
    "h": 304.3
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#5B2C87
secondary
#86B25D
accent
#DA4D92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5B2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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