#5B2C9C#5B2C9C

#5B2C9C is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.171 H 297.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5B2C9C
RGBrgb(91, 44, 156)
HSLhsl(265, 56%, 39%)
HSVhsv(265, 72%, 61%)
CMYKcmyk(41.7%, 71.8%, 0%, 38.8%)
CIE-LABlab(30.46, 44.97, -53.00)
CIE-LCHlch(30.46, 69.50, 310.31°)
OKLaboklab(42.05% 0.0796 -0.1514)
OKLCHoklch(42.05% 0.171 297.7)
XYZxyz(11.2143, 6.4256, 32.0955)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C9C #6D9C2C
analogous
#2C359C #5B2C9C #932C9C
triadic
#5B2C9C #9C5B2C #2C9C5B
tetradic
#5B2C9C #9C2C35 #6D9C2C #2C9C93
square
#5B2C9C #9C2C35 #6D9C2C #2C9C93
split-complementary
#5B2C9C #9C932C #359C2C
monochromatic
#23113D #3F1F6C #5B2C9C #773DC8 #996DD6

Accessibility & contrast

On white

9.19
#5B2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B2C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C9C
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C9C#FFFFFF#000000##FFFFFF
##5B2C9C1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4B4861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2c9c;
/* rgb */ color: rgb(91, 44, 156);
/* oklch */ color: oklch(42.0% 0.171 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f69ba',
    500: '#5b2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c9c;
$custom-light: #8f69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c9c",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 265.179,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42048,
    "c": 0.17105,
    "h": 297.7
  },
  "luminance": 0.06426
}

Semantic roles & 50–950 ramp

primary
#5B2C9C
secondary
#99BD67
accent
#DF49A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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