#5B3192#5B3192

#5B3192 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.153 H 299.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5B3192
RGBrgb(91, 49, 146)
HSLhsl(266, 50%, 38%)
HSVhsv(266, 66%, 57%)
CMYKcmyk(37.7%, 66.4%, 0%, 42.7%)
CIE-LABlab(30.63, 39.67, -46.61)
CIE-LCHlch(30.63, 61.21, 310.41°)
OKLaboklab(41.92% 0.0756 -0.1327)
OKLCHoklch(41.92% 0.153 299.7)
XYZxyz(10.5997, 6.4960, 27.8840)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3192 #689231
analogous
#313792 #5B3192 #8B3192
triadic
#5B3192 #925B31 #31925B
tetradic
#5B3192 #923137 #689231 #31928B
square
#5B3192 #923137 #689231 #31928B
split-complementary
#5B3192 #928B31 #379231
monochromatic
#221236 #3E2264 #5B3192 #7841BF #986FCF

Accessibility & contrast

On white

9.13
#5B3192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B3192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3192
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3192#FFFFFF#000000##FFFFFF
##5B31921.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#4F475D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b3192;
/* rgb */ color: rgb(91, 49, 146);
/* oklch */ color: oklch(41.9% 0.153 299.7);
Tailwind
colors: {
  custom: {
    50: '#8e6cb3',
    500: '#5b3192',
    950: '#000000',
  },
}
SCSS
$custom: #5b3192;
$custom-light: #8e6cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3192",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 265.979,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.15267,
    "h": 299.7
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#5B3192
secondary
#95B669
accent
#D94F9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B3192

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

Preview Lab → · Contrast checker → · Palette generator →

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