#5B2B9E#5B2B9E

#5B2B9E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.175 H 297.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5B2B9E
RGBrgb(91, 43, 158)
HSLhsl(265, 57%, 39%)
HSVhsv(265, 73%, 62%)
CMYKcmyk(42.4%, 72.8%, 0%, 38%)
CIE-LABlab(30.45, 46.00, -54.23)
CIE-LCHlch(30.45, 71.11, 310.30°)
OKLaboklab(42.09% 0.0802 -0.155)
OKLCHoklch(42.09% 0.175 297.3)
XYZxyz(11.3482, 6.4203, 32.9825)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B9E #6E9E2B
analogous
#2B359E #5B2B9E #952B9E
triadic
#5B2B9E #9E5B2B #2B9E5B
tetradic
#5B2B9E #9E2B35 #6E9E2B #2B9E95
square
#5B2B9E #9E2B35 #6E9E2B #2B9E95
split-complementary
#5B2B9E #9E952B #359E2B
monochromatic
#24113E #3F1E6E #5B2B9E #773CCA #996CD7

Accessibility & contrast

On white

9.19
#5B2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B9E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B9E#FFFFFF#000000##FFFFFF
##5B2B9E1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4A4862
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2b9e;
/* rgb */ color: rgb(91, 43, 158);
/* oklch */ color: oklch(42.1% 0.175 297.3);
Tailwind
colors: {
  custom: {
    50: '#9069bc',
    500: '#5b2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b9e;
$custom-light: #9069bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b9e",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 265.043,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4209,
    "c": 0.17455,
    "h": 297.3
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#5B2B9E
secondary
#9ABE67
accent
#E047A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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