#5B2D83#5B2D83

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

Color values

HEX#5B2D83
RGBrgb(91, 45, 131)
HSLhsl(272, 49%, 35%)
HSVhsv(272, 66%, 51%)
CMYKcmyk(30.5%, 65.6%, 0%, 48.6%)
CIE-LABlab(28.75, 37.93, -40.36)
CIE-LCHlch(28.75, 55.39, 313.22°)
OKLaboklab(40.22% 0.0817 -0.1143)
OKLCHoklch(40.22% 0.141 305.6)
XYZxyz(9.3486, 5.7397, 22.0837)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D83 #55832D
analogous
#302D83 #5B2D83 #832D80
triadic
#5B2D83 #835B2D #2D835B
tetradic
#5B2D83 #83302D #55832D #2D8083
square
#5B2D83 #83302D #55832D #2D8083
split-complementary
#5B2D83 #80832D #2D8330
monochromatic
#1C0E28 #3B1D55 #5B2D83 #7B3DB1 #9962C9

Accessibility & contrast

On white

9.78
#5B2D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B2D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D83
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D83#FFFFFF#000000##FFFFFF
##5B2D831.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#184481
Tritanopia (blue-blind)
#543F54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2d83;
/* rgb */ color: rgb(91, 45, 131);
/* oklch */ color: oklch(40.2% 0.141 305.6);
Tailwind
colors: {
  custom: {
    50: '#8d69a8',
    500: '#5b2d83',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d83;
$custom-light: #8d69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d83",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 272.093,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.1405,
    "h": 305.6
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#5B2D83
secondary
#83AF5C
accent
#D84F8F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B2D83

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

Preview Lab → · Contrast checker → · Palette generator →

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