#5B2D9B#5B2D9B

#5B2D9B is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.169 H 297.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5B2D9B
RGBrgb(91, 45, 155)
HSLhsl(265, 55%, 39%)
HSVhsv(265, 71%, 61%)
CMYKcmyk(41.3%, 71%, 0%, 39.2%)
CIE-LABlab(30.56, 44.19, -52.23)
CIE-LCHlch(30.56, 68.42, 310.24°)
OKLaboklab(42.09% 0.0787 -0.1491)
OKLCHoklch(42.09% 0.169 297.8)
XYZxyz(11.1676, 6.4673, 31.6639)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D9B #6D9B2D
analogous
#2D369B #5B2D9B #922D9B
triadic
#5B2D9B #9B5B2D #2D9B5B
tetradic
#5B2D9B #9B2D36 #6D9B2D #2D9B92
square
#5B2D9B #9B2D36 #6D9B2D #2D9B92
split-complementary
#5B2D9B #9B922D #369B2D
monochromatic
#23113C #3F1F6C #5B2D9B #773EC7 #996ED5

Accessibility & contrast

On white

9.16
#5B2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D9B
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D9B#FFFFFF#000000##FFFFFF
##5B2D9B1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#4B4860
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2d9b;
/* rgb */ color: rgb(91, 45, 155);
/* oklch */ color: oklch(42.1% 0.169 297.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ab9',
    500: '#5b2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d9b;
$custom-light: #8f6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d9b",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 265.091,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42094,
    "c": 0.16865,
    "h": 297.8
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#5B2D9B
secondary
#99BC68
accent
#DE49A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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