#5B2B93#5B2B93

#5B2B93 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.162 H 300.5°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5B2B93
RGBrgb(91, 43, 147)
HSLhsl(268, 55%, 37%)
HSVhsv(268, 71%, 58%)
CMYKcmyk(38.1%, 70.7%, 0%, 42.4%)
CIE-LABlab(29.56, 43.10, -48.96)
CIE-LCHlch(29.56, 65.23, 311.36°)
OKLaboklab(41.18% 0.0822 -0.1395)
OKLCHoklch(41.18% 0.162 300.5)
XYZxyz(10.4434, 6.0584, 28.2173)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B93 #63932B
analogous
#2B2F93 #5B2B93 #8F2B93
triadic
#5B2B93 #935B2B #2B935B
tetradic
#5B2B93 #932B2F #63932B #2B938F
square
#5B2B93 #932B2F #63932B #2B938F
split-complementary
#5B2B93 #938F2B #2F932B
monochromatic
#200F34 #3E1D64 #5B2B93 #7839C2 #9866D2

Accessibility & contrast

On white

9.50
#5B2B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B93
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B93#FFFFFF#000000##FFFFFF
##5B2B931.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004591
Tritanopia (blue-blind)
#4F445C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2b93;
/* rgb */ color: rgb(91, 43, 147);
/* oklch */ color: oklch(41.2% 0.162 300.5);
Tailwind
colors: {
  custom: {
    50: '#8e68b3',
    500: '#5b2b93',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b93;
$custom-light: #8e68b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b93",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 147
  },
  "hsl": {
    "h": 267.692,
    "s": 54.737,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41179,
    "c": 0.16197,
    "h": 300.5
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#5B2B93
secondary
#90B961
accent
#DE4A9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2B93

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

Preview Lab → · Contrast checker → · Palette generator →

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