#5B2296#5B2296

#5B2296 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.176 H 300.9°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5B2296
RGBrgb(91, 34, 150)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(39.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(28.30, 48.12, -52.85)
CIE-LCHlch(28.30, 71.48, 312.32°)
OKLaboklab(40.37% 0.0905 -0.1509)
OKLCHoklch(40.37% 0.176 300.9)
XYZxyz(10.3901, 5.5701, 29.3760)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2296 #5D9622
analogous
#222396 #5B2296 #952296
triadic
#5B2296 #965B22 #22965B
tetradic
#5B2296 #962223 #5D9622 #229695
square
#5B2296 #962223 #5D9622 #229695
split-complementary
#5B2296 #969522 #239622
monochromatic
#1E0B32 #3D1764 #5B2296 #792DC8 #9859D9

Accessibility & contrast

On white

9.93
#5B2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2296
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2296#FFFFFF#000000##FFFFFF
##5B22961.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#4E405B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2296;
/* rgb */ color: rgb(91, 34, 150);
/* oklch */ color: oklch(40.4% 0.176 300.9);
Tailwind
colors: {
  custom: {
    50: '#8f64b6',
    500: '#5b2296',
    950: '#000000',
  },
}
SCSS
$custom: #5b2296;
$custom-light: #8f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2296",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 269.483,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40366,
    "c": 0.17598,
    "h": 300.9
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#5B2296
secondary
#8BBE56
accent
#E64295
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2296

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

Preview Lab → · Contrast checker → · Palette generator →

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