#5B2C8D#5B2C8D

#5B2C8D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.154 H 302.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5B2C8D
RGBrgb(91, 44, 141)
HSLhsl(269, 52%, 36%)
HSVhsv(269, 69%, 55%)
CMYKcmyk(35.5%, 68.8%, 0%, 44.7%)
CIE-LABlab(29.28, 41.03, -45.71)
CIE-LCHlch(29.28, 61.42, 311.91°)
OKLaboklab(40.84% 0.082 -0.13)
OKLCHoklch(40.84% 0.154 302.2)
XYZxyz(10.0216, 5.9486, 25.8144)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C8D #5E8D2C
analogous
#2C2E8D #5B2C8D #8C2C8D
triadic
#5B2C8D #8D5B2C #2C8D5B
tetradic
#5B2C8D #8D2C2E #5E8D2C #2C8D8C
square
#5B2C8D #8D2C2E #5E8D2C #2C8D8C
split-complementary
#5B2C8D #8D8C2C #2E8D2C
monochromatic
#1F0F30 #3D1D5E #5B2C8D #793BBC #9865CF

Accessibility & contrast

On white

9.59
#5B2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C8D
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C8D#FFFFFF#000000##FFFFFF
##5B2C8D1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#514259
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2c8d;
/* rgb */ color: rgb(91, 44, 141);
/* oklch */ color: oklch(40.8% 0.154 302.2);
Tailwind
colors: {
  custom: {
    50: '#8e69af',
    500: '#5b2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c8d;
$custom-light: #8e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c8d",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 269.072,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.15369,
    "h": 302.2
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#5B2C8D
secondary
#8CB560
accent
#DC4C96
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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