#5B2295#5B2295

#5B2295 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.175 H 301.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5B2295
RGBrgb(91, 34, 149)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 77%, 58%)
CMYKcmyk(38.9%, 77.2%, 0%, 41.6%)
CIE-LABlab(28.22, 47.87, -52.38)
CIE-LCHlch(28.22, 70.96, 312.43°)
OKLaboklab(40.28% 0.0908 -0.1495)
OKLCHoklch(40.28% 0.175 301.3)
XYZxyz(10.3099, 5.5381, 28.9537)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2295 #5C9522
analogous
#222295 #5B2295 #942295
triadic
#5B2295 #955B22 #22955B
tetradic
#5B2295 #952222 #5C9522 #229594
square
#5B2295 #952222 #5C9522 #229594
split-complementary
#5B2295 #959422 #229522
monochromatic
#1E0B31 #3D1763 #5B2295 #792DC7 #9858D9

Accessibility & contrast

On white

9.96
#5B2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2295
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2295#FFFFFF#000000##FFFFFF
##5B22951.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#4E405A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2295;
/* rgb */ color: rgb(91, 34, 149);
/* oklch */ color: oklch(40.3% 0.175 301.3);
Tailwind
colors: {
  custom: {
    50: '#8f64b5',
    500: '#5b2295',
    950: '#000000',
  },
}
SCSS
$custom: #5b2295;
$custom-light: #8f64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2295",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 269.739,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40279,
    "c": 0.17491,
    "h": 301.3
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B2295

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

Preview Lab → · Contrast checker → · Palette generator →

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