#5B2294#5B2294

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

Color values

HEX#5B2294
RGBrgb(91, 34, 148)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 77%, 58%)
CMYKcmyk(38.5%, 77%, 0%, 42%)
CIE-LABlab(28.13, 47.62, -51.90)
CIE-LCHlch(28.13, 70.44, 312.54°)
OKLaboklab(40.19% 0.091 -0.1481)
OKLCHoklch(40.19% 0.174 301.6)
XYZxyz(10.2304, 5.5063, 28.5351)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2294 #5B9422
analogous
#222294 #5B2294 #942294
triadic
#5B2294 #945B22 #22945B
tetradic
#5B2294 #942222 #5B9422 #229494
square
#5B2294 #942222 #5B9422 #229494
split-complementary
#5B2294 #949422 #229422
monochromatic
#1E0B30 #3C1762 #5B2294 #7A2DC6 #9858D9

Accessibility & contrast

On white

9.99
#5B2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B2294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2294
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2294#FFFFFF#000000##FFFFFF
##5B22941.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2294;
/* rgb */ color: rgb(91, 34, 148);
/* oklch */ color: oklch(40.2% 0.174 301.6);
Tailwind
colors: {
  custom: {
    50: '#8f63b4',
    500: '#5b2294',
    950: '#000000',
  },
}
SCSS
$custom: #5b2294;
$custom-light: #8f63b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2294",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 270,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40193,
    "c": 0.17385,
    "h": 301.6
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#5B2294
secondary
#89BD55
accent
#E64294
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2294

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

Preview Lab → · Contrast checker → · Palette generator →

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