#5B2190#5B2190

#5B2190 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.171 H 303.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5B2190
RGBrgb(91, 33, 144)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 56%)
CMYKcmyk(36.8%, 77.1%, 0%, 43.5%)
CIE-LABlab(27.64, 47.07, -50.23)
CIE-LCHlch(27.64, 68.84, 313.14°)
OKLaboklab(39.75% 0.0929 -0.1432)
OKLCHoklch(39.75% 0.171 303)
XYZxyz(9.8911, 5.3255, 26.8870)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2190 #569021
analogous
#232190 #5B2190 #90218E
triadic
#5B2190 #905B21 #21905B
tetradic
#5B2190 #902321 #569021 #218E90
square
#5B2190 #902321 #569021 #218E90
split-complementary
#5B2190 #8E9021 #219023
monochromatic
#1C0A2C #3C165E #5B2190 #7A2CC2 #9954D8

Accessibility & contrast

On white

10.17
#5B2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B2190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2190
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2190#FFFFFF#000000##FFFFFF
##5B21901.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#503D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2190;
/* rgb */ color: rgb(91, 33, 144);
/* oklch */ color: oklch(39.7% 0.171 303.0);
Tailwind
colors: {
  custom: {
    50: '#8f63b1',
    500: '#5b2190',
    950: '#000000',
  },
}
SCSS
$custom: #5b2190;
$custom-light: #8f63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2190",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 271.351,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39746,
    "c": 0.1707,
    "h": 303
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#5B2190
secondary
#84BB51
accent
#E64290
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2190

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

Preview Lab → · Contrast checker → · Palette generator →

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