#5B2298#5B2298

#5B2298 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.178 H 300.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5B2298
RGBrgb(91, 34, 152)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.47, 48.62, -53.80)
CIE-LCHlch(28.47, 72.51, 312.11°)
OKLaboklab(40.54% 0.09 -0.1537)
OKLCHoklch(40.54% 0.178 300.3)
XYZxyz(10.5525, 5.6351, 30.2314)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2298 #5F9822
analogous
#222498 #5B2298 #962298
triadic
#5B2298 #985B22 #22985B
tetradic
#5B2298 #982224 #5F9822 #229896
square
#5B2298 #982224 #5F9822 #229896
split-complementary
#5B2298 #989622 #249822
monochromatic
#1F0C34 #3D1766 #5B2298 #792DCA #985ADA

Accessibility & contrast

On white

9.87
#5B2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2298
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2298#FFFFFF#000000##FFFFFF
##5B22981.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4D415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2298;
/* rgb */ color: rgb(91, 34, 152);
/* oklch */ color: oklch(40.5% 0.178 300.3);
Tailwind
colors: {
  custom: {
    50: '#8f64b7',
    500: '#5b2298',
    950: '#000000',
  },
}
SCSS
$custom: #5b2298;
$custom-light: #8f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2298",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 268.983,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.17811,
    "h": 300.3
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#5B2298
secondary
#8DBE57
accent
#E64197
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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