#5B2C8F#5B2C8F

#5B2C8F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.156 H 301.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5B2C8F
RGBrgb(91, 44, 143)
HSLhsl(268, 53%, 37%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(36.4%, 69.2%, 0%, 43.9%)
CIE-LABlab(29.43, 41.55, -46.70)
CIE-LCHlch(29.43, 62.51, 311.66°)
OKLaboklab(40.99% 0.0817 -0.1329)
OKLCHoklch(40.99% 0.156 301.6)
XYZxyz(10.1718, 6.0086, 26.6052)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C8F #608F2C
analogous
#2C2F8F #5B2C8F #8D2C8F
triadic
#5B2C8F #8F5B2C #2C8F5B
tetradic
#5B2C8F #8F2C2F #608F2C #2C8F8D
square
#5B2C8F #8F2C2F #608F2C #2C8F8D
split-complementary
#5B2C8F #8F8D2C #2F8F2C
monochromatic
#1F0F31 #3D1E60 #5B2C8F #793ABE #9866D0

Accessibility & contrast

On white

9.54
#5B2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B2C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C8F
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C8F#FFFFFF#000000##FFFFFF
##5B2C8F1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#50435A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2c8f;
/* rgb */ color: rgb(91, 44, 143);
/* oklch */ color: oklch(41.0% 0.156 301.6);
Tailwind
colors: {
  custom: {
    50: '#8e69b0',
    500: '#5b2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c8f;
$custom-light: #8e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c8f",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 268.485,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40992,
    "c": 0.15601,
    "h": 301.6
  },
  "luminance": 0.06009
}

Semantic roles & 50–950 ramp

primary
#5B2C8F
secondary
#8EB661
accent
#DC4B98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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