#5B2D85#5B2D85

#5B2D85 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.143 H 304.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5B2D85
RGBrgb(91, 45, 133)
HSLhsl(271, 49%, 35%)
HSVhsv(271, 66%, 52%)
CMYKcmyk(31.6%, 66.2%, 0%, 47.8%)
CIE-LABlab(28.89, 38.44, -41.38)
CIE-LCHlch(28.89, 56.48, 312.89°)
OKLaboklab(40.37% 0.0816 -0.1173)
OKLCHoklch(40.37% 0.143 304.8)
XYZxyz(9.4855, 5.7944, 22.8045)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D85 #57852D
analogous
#2F2D85 #5B2D85 #852D83
triadic
#5B2D85 #855B2D #2D855B
tetradic
#5B2D85 #852F2D #57852D #2D8385
square
#5B2D85 #852F2D #57852D #2D8385
split-complementary
#5B2D85 #83852D #2D852F
monochromatic
#1C0E2A #3C1E57 #5B2D85 #7A3CB3 #9962CA

Accessibility & contrast

On white

9.73
#5B2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D85
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D85#FFFFFF#000000##FFFFFF
##5B2D851.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#154483
Tritanopia (blue-blind)
#534055
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2d85;
/* rgb */ color: rgb(91, 45, 133);
/* oklch */ color: oklch(40.4% 0.143 304.8);
Tailwind
colors: {
  custom: {
    50: '#8d69a9',
    500: '#5b2d85',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d85;
$custom-light: #8d69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d85",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 271.364,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40365,
    "c": 0.14286,
    "h": 304.8
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#5B2D85
secondary
#85B05D
accent
#D94F91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5B2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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