#5B2082#5B2082

#5B2082 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.157 H 308.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2082
RGBrgb(91, 32, 130)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(30%, 75.4%, 0%, 49%)
CIE-LABlab(26.36, 44.12, -43.59)
CIE-LCHlch(26.36, 62.02, 315.35°)
OKLaboklab(38.49% 0.0969 -0.1237)
OKLCHoklch(38.49% 0.157 308.1)
XYZxyz(8.8593, 4.8690, 21.5879)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2082 #478220
analogous
#2A2082 #5B2082 #822078
triadic
#5B2082 #825B20 #20825B
tetradic
#5B2082 #822A20 #478220 #207882
square
#5B2082 #822A20 #478220 #207882
split-complementary
#5B2082 #788220 #20822A
monochromatic
#160820 #391451 #5B2082 #7D2CB3 #9C4AD2

Accessibility & contrast

On white

10.64
#5B2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2082
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2082#FFFFFF#000000##FFFFFF
##5B20821.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#55374F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2082;
/* rgb */ color: rgb(91, 32, 130);
/* oklch */ color: oklch(38.5% 0.157 308.1);
Tailwind
colors: {
  custom: {
    50: '#8d62a7',
    500: '#5b2082',
    950: '#000000',
  },
}
SCSS
$custom: #5b2082;
$custom-light: #8d62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2082",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 276.122,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38485,
    "c": 0.1571,
    "h": 308.1
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#5B2082
secondary
#74B549
accent
#E44484
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5B2082

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

Preview Lab → · Contrast checker → · Palette generator →

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