#5B2696#5B2696

#5B2696 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.171 H 300.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5B2696
RGBrgb(91, 38, 150)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(39.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(28.93, 46.32, -51.82)
CIE-LCHlch(28.93, 69.50, 311.79°)
OKLaboklab(40.81% 0.0868 -0.1479)
OKLCHoklch(40.81% 0.171 300.4)
XYZxyz(10.5112, 5.8123, 29.4164)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2696 #619626
analogous
#262996 #5B2696 #932696
triadic
#5B2696 #965B26 #26965B
tetradic
#5B2696 #962629 #619626 #269693
square
#5B2696 #962629 #619626 #269693
split-complementary
#5B2696 #969326 #299626
monochromatic
#200D34 #3D1A65 #5B2696 #7932C7 #9860D7

Accessibility & contrast

On white

9.71
#5B2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2696
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2696#FFFFFF#000000##FFFFFF
##5B26961.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#4E425C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2696;
/* rgb */ color: rgb(91, 38, 150);
/* oklch */ color: oklch(40.8% 0.171 300.4);
Tailwind
colors: {
  custom: {
    50: '#8f66b6',
    500: '#5b2696',
    950: '#000000',
  },
}
SCSS
$custom: #5b2696;
$custom-light: #8f66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2696",
  "rgb": {
    "r": 91,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 268.393,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40811,
    "c": 0.17149,
    "h": 300.4
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#5B2696
secondary
#8EBC5C
accent
#E34598
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2696

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

Preview Lab → · Contrast checker → · Palette generator →

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