#5B328E#5B328E

#5B328E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.8% C 0.146 H 300.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5B328E
RGBrgb(91, 50, 142)
HSLhsl(267, 48%, 38%)
HSVhsv(267, 65%, 56%)
CMYKcmyk(35.9%, 64.8%, 0%, 44.3%)
CIE-LABlab(30.54, 38.05, -44.29)
CIE-LCHlch(30.54, 58.40, 310.67°)
OKLaboklab(41.77% 0.0747 -0.1258)
OKLCHoklch(41.77% 0.146 300.7)
XYZxyz(10.3363, 6.4583, 26.2880)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B328E #658E32
analogous
#32378E #5B328E #89328E
triadic
#5B328E #8E5B32 #328E5B
tetradic
#5B328E #8E3237 #658E32 #328E89
square
#5B328E #8E3237 #658E32 #328E89
split-complementary
#5B328E #8E8932 #378E32
monochromatic
#211233 #3E2261 #5B328E #7842BB #986ECC

Accessibility & contrast

On white

9.16
#5B328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B328E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B328E#FFFFFF#000000##FFFFFF
##5B328E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#0E478C
Tritanopia (blue-blind)
#50465B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b328e;
/* rgb */ color: rgb(91, 50, 142);
/* oklch */ color: oklch(41.8% 0.146 300.7);
Tailwind
colors: {
  custom: {
    50: '#8d6cb0',
    500: '#5b328e',
    950: '#000000',
  },
}
SCSS
$custom: #5b328e;
$custom-light: #8d6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b328e",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 266.739,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.14637,
    "h": 300.7
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#5B328E
secondary
#92B468
accent
#D8509B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5B328E

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

Preview Lab → · Contrast checker → · Palette generator →

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