#5B2D9E#5B2D9E

#5B2D9E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.172 H 297.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B2D9E
RGBrgb(91, 45, 158)
HSLhsl(264, 56%, 40%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(42.4%, 71.5%, 0%, 38%)
CIE-LABlab(30.81, 45.00, -53.65)
CIE-LCHlch(30.81, 70.02, 309.98°)
OKLaboklab(42.34% 0.0782 -0.1533)
OKLCHoklch(42.34% 0.172 297)
XYZxyz(11.4227, 6.5693, 33.0073)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D9E #709E2D
analogous
#2D379E #5B2D9E #942D9E
triadic
#5B2D9E #9E5B2D #2D9E5B
tetradic
#5B2D9E #9E2D37 #709E2D #2D9E94
square
#5B2D9E #9E2D37 #709E2D #2D9E94
split-complementary
#5B2D9E #9E942D #379E2D
monochromatic
#24123F #401F6E #5B2D9E #7740C9 #996FD6

Accessibility & contrast

On white

9.08
#5B2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2D9E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D9E#FFFFFF#000000##FFFFFF
##5B2D9E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#4A4962
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2d9e;
/* rgb */ color: rgb(91, 45, 158);
/* oklch */ color: oklch(42.3% 0.172 297.0);
Tailwind
colors: {
  custom: {
    50: '#8f6abc',
    500: '#5b2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d9e;
$custom-light: #8f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d9e",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 264.425,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.17212,
    "h": 297
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#5B2D9E
secondary
#9BBD69
accent
#DF49A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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