#5B2096#5B2096

#5B2096 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 301.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5B2096
RGBrgb(91, 32, 150)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 79%, 59%)
CMYKcmyk(39.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(28.00, 48.97, -53.34)
CIE-LCHlch(28.00, 72.41, 312.56°)
OKLaboklab(40.16% 0.0923 -0.1523)
OKLCHoklch(40.16% 0.178 301.2)
XYZxyz(10.3346, 5.4591, 29.3575)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2096 #5B9620
analogous
#202096 #5B2096 #962096
triadic
#5B2096 #965B20 #20965B
tetradic
#5B2096 #962020 #5B9620 #209696
square
#5B2096 #962020 #5B9620 #209696
split-complementary
#5B2096 #969620 #209620
monochromatic
#1E0A31 #3C1564 #5B2096 #7A2BC8 #9856DB

Accessibility & contrast

On white

10.04
#5B2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2096
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2096#FFFFFF#000000##FFFFFF
##5B20961.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4E3F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2096;
/* rgb */ color: rgb(91, 32, 150);
/* oklch */ color: oklch(40.2% 0.178 301.2);
Tailwind
colors: {
  custom: {
    50: '#8f63b6',
    500: '#5b2096',
    950: '#000000',
  },
}
SCSS
$custom: #5b2096;
$custom-light: #8f63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2096",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 270,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40158,
    "c": 0.17809,
    "h": 301.2
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#5B2096
secondary
#89BE53
accent
#E84094
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2096

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

Preview Lab → · Contrast checker → · Palette generator →

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