#5B2C8E#5B2C8E

#5B2C8E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.155 H 301.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5B2C8E
RGBrgb(91, 44, 142)
HSLhsl(269, 53%, 36%)
HSVhsv(269, 69%, 56%)
CMYKcmyk(35.9%, 69%, 0%, 44.3%)
CIE-LABlab(29.36, 41.29, -46.21)
CIE-LCHlch(29.36, 61.97, 311.78°)
OKLaboklab(40.91% 0.0818 -0.1314)
OKLCHoklch(40.91% 0.155 301.9)
XYZxyz(10.0964, 5.9785, 26.2080)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C8E #5F8E2C
analogous
#2C2E8E #5B2C8E #8C2C8E
triadic
#5B2C8E #8E5B2C #2C8E5B
tetradic
#5B2C8E #8E2C2E #5F8E2C #2C8E8C
square
#5B2C8E #8E2C2E #5F8E2C #2C8E8C
split-complementary
#5B2C8E #8E8C2C #2E8E2C
monochromatic
#1F0F31 #3D1E5F #5B2C8E #793ABD #9865CF

Accessibility & contrast

On white

9.56
#5B2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2C8E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C8E#FFFFFF#000000##FFFFFF
##5B2C8E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#504259
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2c8e;
/* rgb */ color: rgb(91, 44, 142);
/* oklch */ color: oklch(40.9% 0.155 301.9);
Tailwind
colors: {
  custom: {
    50: '#8e69b0',
    500: '#5b2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c8e;
$custom-light: #8e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c8e",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 268.776,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.15484,
    "h": 301.9
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#5B2C8E
secondary
#8DB660
accent
#DC4C97
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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