#5B2393#5B2393

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

Color values

HEX#5B2393
RGBrgb(91, 35, 147)
HSLhsl(270, 62%, 36%)
HSVhsv(270, 76%, 58%)
CMYKcmyk(38.1%, 76.2%, 0%, 42.4%)
CIE-LABlab(28.20, 46.93, -51.17)
CIE-LCHlch(28.20, 69.43, 312.53°)
OKLaboklab(40.22% 0.0903 -0.146)
OKLCHoklch(40.22% 0.172 301.7)
XYZxyz(10.1806, 5.5327, 28.1297)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2393 #5B9323
analogous
#232393 #5B2393 #932393
triadic
#5B2393 #935B23 #23935B
tetradic
#5B2393 #932323 #5B9323 #239393
square
#5B2393 #932323 #5B9323 #239393
split-complementary
#5B2393 #939323 #239323
monochromatic
#1E0B30 #3C1762 #5B2393 #7A2FC4 #9859D7

Accessibility & contrast

On white

9.97
#5B2393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2393
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2393#FFFFFF#000000##FFFFFF
##5B23931.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#4F4059
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2393;
/* rgb */ color: rgb(91, 35, 147);
/* oklch */ color: oklch(40.2% 0.172 301.7);
Tailwind
colors: {
  custom: {
    50: '#8f64b4',
    500: '#5b2393',
    950: '#000000',
  },
}
SCSS
$custom: #5b2393;
$custom-light: #8f64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2393",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 270,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40217,
    "c": 0.17167,
    "h": 301.7
  },
  "luminance": 0.05533
}

Semantic roles & 50–950 ramp

primary
#5B2393
secondary
#89BC56
accent
#E54394
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2393

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

Preview Lab → · Contrast checker → · Palette generator →

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