#5B2C85#5B2C85

#5B2C85 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.144 H 305.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2C85
RGBrgb(91, 44, 133)
HSLhsl(272, 50%, 35%)
HSVhsv(272, 67%, 52%)
CMYKcmyk(31.6%, 66.9%, 0%, 47.8%)
CIE-LABlab(28.69, 38.98, -41.70)
CIE-LCHlch(28.69, 57.08, 313.07°)
OKLaboklab(40.22% 0.0828 -0.1182)
OKLCHoklch(40.22% 0.144 305)
XYZxyz(9.4478, 5.7190, 22.7919)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C85 #56852C
analogous
#2E2C85 #5B2C85 #852C83
triadic
#5B2C85 #855B2C #2C855B
tetradic
#5B2C85 #852E2C #56852C #2C8385
square
#5B2C85 #852E2C #56852C #2C8385
split-complementary
#5B2C85 #83852C #2C852E
monochromatic
#1C0E29 #3C1D57 #5B2C85 #7A3BB3 #9961CB

Accessibility & contrast

On white

9.80
#5B2C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B2C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C85
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C85#FFFFFF#000000##FFFFFF
##5B2C851.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#134483
Tritanopia (blue-blind)
#533F54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2c85;
/* rgb */ color: rgb(91, 44, 133);
/* oklch */ color: oklch(40.2% 0.144 305.0);
Tailwind
colors: {
  custom: {
    50: '#8d68a9',
    500: '#5b2c85',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c85;
$custom-light: #8d68a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c85",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 271.685,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.14432,
    "h": 305
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#5B2C85
secondary
#84B15C
accent
#DA4E90
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5B2C85

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

Preview Lab → · Contrast checker → · Palette generator →

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