#5B2D8E#5B2D8E

#5B2D8E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.153 H 301.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5B2D8E
RGBrgb(91, 45, 142)
HSLhsl(268, 52%, 37%)
HSVhsv(268, 68%, 56%)
CMYKcmyk(35.9%, 68.3%, 0%, 44.3%)
CIE-LABlab(29.55, 40.77, -45.90)
CIE-LCHlch(29.55, 61.39, 311.61°)
OKLaboklab(41.05% 0.0807 -0.1305)
OKLCHoklch(41.05% 0.153 301.7)
XYZxyz(10.1341, 6.0539, 26.2206)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D8E #608E2D
analogous
#2D2F8E #5B2D8E #8C2D8E
triadic
#5B2D8E #8E5B2D #2D8E5B
tetradic
#5B2D8E #8E2D2F #608E2D #2D8E8C
square
#5B2D8E #8E2D2F #608E2D #2D8E8C
split-complementary
#5B2D8E #8E8C2D #2F8E2D
monochromatic
#1F1031 #3D1E60 #5B2D8E #793CBC #9867CF

Accessibility & contrast

On white

9.50
#5B2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D8E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D8E#FFFFFF#000000##FFFFFF
##5B2D8E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#504359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2d8e;
/* rgb */ color: rgb(91, 45, 142);
/* oklch */ color: oklch(41.0% 0.153 301.7);
Tailwind
colors: {
  custom: {
    50: '#8e69b0',
    500: '#5b2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d8e;
$custom-light: #8e69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d8e",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 268.454,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4105,
    "c": 0.15347,
    "h": 301.7
  },
  "luminance": 0.06054
}

Semantic roles & 50–950 ramp

primary
#5B2D8E
secondary
#8EB561
accent
#DB4C98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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