#5B2390#5B2390

#5B2390 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.168 H 302.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5B2390
RGBrgb(91, 35, 144)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 56%)
CMYKcmyk(36.8%, 75.7%, 0%, 43.5%)
CIE-LABlab(27.95, 46.18, -49.72)
CIE-LCHlch(27.95, 67.86, 312.89°)
OKLaboklab(39.96% 0.091 -0.1417)
OKLCHoklch(39.96% 0.168 302.7)
XYZxyz(9.9483, 5.4398, 26.9060)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2390 #589023
analogous
#252390 #5B2390 #90238E
triadic
#5B2390 #905B23 #23905B
tetradic
#5B2390 #902523 #589023 #238E90
square
#5B2390 #902523 #589023 #238E90
split-complementary
#5B2390 #8E9023 #239025
monochromatic
#1D0B2E #3C175F #5B2390 #7A2FC1 #9857D6

Accessibility & contrast

On white

10.06
#5B2390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B2390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2390
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2390#FFFFFF#000000##FFFFFF
##5B23901.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#503E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2390;
/* rgb */ color: rgb(91, 35, 144);
/* oklch */ color: oklch(40.0% 0.168 302.7);
Tailwind
colors: {
  custom: {
    50: '#8f64b1',
    500: '#5b2390',
    950: '#000000',
  },
}
SCSS
$custom: #5b2390;
$custom-light: #8f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2390",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 270.826,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39964,
    "c": 0.16844,
    "h": 302.7
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#5B2390
secondary
#86BA54
accent
#E44492
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2390

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

Preview Lab → · Contrast checker → · Palette generator →

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