#5B2D9C#5B2D9C

#5B2D9C is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.170 H 297.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5B2D9C
RGBrgb(91, 45, 156)
HSLhsl(265, 55%, 39%)
HSVhsv(265, 71%, 61%)
CMYKcmyk(41.7%, 71.2%, 0%, 38.8%)
CIE-LABlab(30.64, 44.46, -52.70)
CIE-LCHlch(30.64, 68.95, 310.15°)
OKLaboklab(42.18% 0.0785 -0.1506)
OKLCHoklch(42.18% 0.17 297.5)
XYZxyz(11.2520, 6.5010, 32.1080)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D9C #6E9C2D
analogous
#2D369C #5B2D9C #932D9C
triadic
#5B2D9C #9C5B2D #2D9C5B
tetradic
#5B2D9C #9C2D36 #6E9C2D #2D9C93
square
#5B2D9C #9C2D36 #6E9C2D #2D9C93
split-complementary
#5B2D9C #9C932D #369C2D
monochromatic
#24123D #3F1F6D #5B2D9C #773FC8 #996ED5

Accessibility & contrast

On white

9.13
#5B2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D9C
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D9C#FFFFFF#000000##FFFFFF
##5B2D9C1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#4B4861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2d9c;
/* rgb */ color: rgb(91, 45, 156);
/* oklch */ color: oklch(42.2% 0.170 297.5);
Tailwind
colors: {
  custom: {
    50: '#8f6aba',
    500: '#5b2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d9c;
$custom-light: #8f6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d9c",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 264.865,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.16981,
    "h": 297.5
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#5B2D9C
secondary
#9ABC68
accent
#DF49A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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