#5B2796#5B2796

#5B2796 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.170 H 300.2°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5B2796
RGBrgb(91, 39, 150)
HSLhsl(268, 59%, 37%)
HSVhsv(268, 74%, 59%)
CMYKcmyk(39.3%, 74%, 0%, 41.2%)
CIE-LABlab(29.10, 45.85, -51.55)
CIE-LCHlch(29.10, 68.99, 311.65°)
OKLaboklab(40.93% 0.0858 -0.1471)
OKLCHoklch(40.93% 0.17 300.2)
XYZxyz(10.5436, 5.8771, 29.4272)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2796 #629627
analogous
#272B96 #5B2796 #932796
triadic
#5B2796 #965B27 #27965B
tetradic
#5B2796 #96272B #629627 #279693
square
#5B2796 #96272B #629627 #279693
split-complementary
#5B2796 #969327 #2B9627
monochromatic
#200E35 #3E1A65 #5B2796 #7834C7 #9861D6

Accessibility & contrast

On white

9.65
#5B2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2796
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2796#FFFFFF#000000##FFFFFF
##5B27961.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#4E435C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2796;
/* rgb */ color: rgb(91, 39, 150);
/* oklch */ color: oklch(40.9% 0.170 300.2);
Tailwind
colors: {
  custom: {
    50: '#8f66b6',
    500: '#5b2796',
    950: '#000000',
  },
}
SCSS
$custom: #5b2796;
$custom-light: #8f66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2796",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 268.108,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40929,
    "c": 0.17031,
    "h": 300.2
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#5B2796
secondary
#8FBC5D
accent
#E24699
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2796

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

Preview Lab → · Contrast checker → · Palette generator →

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