#5B2195#5B2195

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

Color values

HEX#5B2195
RGBrgb(91, 33, 149)
HSLhsl(270, 64%, 36%)
HSVhsv(270, 78%, 58%)
CMYKcmyk(38.9%, 77.9%, 0%, 41.6%)
CIE-LABlab(28.07, 48.30, -52.62)
CIE-LCHlch(28.07, 71.43, 312.55°)
OKLaboklab(40.17% 0.0917 -0.1502)
OKLCHoklch(40.17% 0.176 301.4)
XYZxyz(10.2817, 5.4817, 28.9443)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2195 #5B9521
analogous
#212195 #5B2195 #952195
triadic
#5B2195 #955B21 #21955B
tetradic
#5B2195 #952121 #5B9521 #219595
square
#5B2195 #952121 #5B9521 #219595
split-complementary
#5B2195 #959521 #219521
monochromatic
#1E0B31 #3C1663 #5B2195 #7A2CC7 #9857DA

Accessibility & contrast

On white

10.02
#5B2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2195
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2195#FFFFFF#000000##FFFFFF
##5B21951.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2195;
/* rgb */ color: rgb(91, 33, 149);
/* oklch */ color: oklch(40.2% 0.176 301.4);
Tailwind
colors: {
  custom: {
    50: '#8f63b5',
    500: '#5b2195',
    950: '#000000',
  },
}
SCSS
$custom: #5b2195;
$custom-light: #8f63b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2195",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 270,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.176,
    "h": 301.4
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#5B2195
secondary
#89BE54
accent
#E74194
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2195

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

Preview Lab → · Contrast checker → · Palette generator →

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