#5B2392#5B2392

#5B2392 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.171 H 302.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5B2392
RGBrgb(91, 35, 146)
HSLhsl(270, 61%, 35%)
HSVhsv(270, 76%, 57%)
CMYKcmyk(37.7%, 76%, 0%, 42.7%)
CIE-LABlab(28.12, 46.68, -50.69)
CIE-LCHlch(28.12, 68.91, 312.64°)
OKLaboklab(40.13% 0.0905 -0.1446)
OKLCHoklch(40.13% 0.171 302.1)
XYZxyz(10.1025, 5.5015, 27.7182)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2392 #5A9223
analogous
#232392 #5B2392 #922391
triadic
#5B2392 #925B23 #23925B
tetradic
#5B2392 #922323 #5A9223 #239192
square
#5B2392 #922323 #5A9223 #239192
split-complementary
#5B2392 #919223 #239223
monochromatic
#1D0B2F #3C1761 #5B2392 #7A2FC3 #9858D7

Accessibility & contrast

On white

10.00
#5B2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2392
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2392#FFFFFF#000000##FFFFFF
##5B23921.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#4F3F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2392;
/* rgb */ color: rgb(91, 35, 146);
/* oklch */ color: oklch(40.1% 0.171 302.1);
Tailwind
colors: {
  custom: {
    50: '#8f64b3',
    500: '#5b2392',
    950: '#000000',
  },
}
SCSS
$custom: #5b2392;
$custom-light: #8f64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2392",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 270.27,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40132,
    "c": 0.17059,
    "h": 302.1
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#5B2392
secondary
#88BB55
accent
#E44393
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2392

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

Preview Lab → · Contrast checker → · Palette generator →

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