#5B327B#5B327B

#5B327B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.123 H 307.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5B327B
RGBrgb(91, 50, 123)
HSLhsl(274, 42%, 34%)
HSVhsv(274, 59%, 48%)
CMYKcmyk(26%, 59.3%, 0%, 51.8%)
CIE-LABlab(29.25, 33.11, -34.53)
CIE-LCHlch(29.25, 47.84, 313.79°)
OKLaboklab(40.41% 0.0752 -0.0972)
OKLCHoklch(40.41% 0.123 307.7)
XYZxyz(9.0294, 5.9355, 19.4050)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B327B #527B32
analogous
#37327B #5B327B #7B3277
triadic
#5B327B #7B5B32 #327B5B
tetradic
#5B327B #7B3732 #527B32 #32777B
square
#5B327B #7B3732 #527B32 #32777B
split-complementary
#5B327B #777B32 #327B37
monochromatic
#1B0F24 #3B204F #5B327B #7B44A7 #9966C1

Accessibility & contrast

On white

9.60
#5B327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B327B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B327B#FFFFFF#000000##FFFFFF
##5B327B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437D
Deuteranopia (green-blind)
#274579
Tritanopia (blue-blind)
#564051
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b327b;
/* rgb */ color: rgb(91, 50, 123);
/* oklch */ color: oklch(40.4% 0.123 307.7);
Tailwind
colors: {
  custom: {
    50: '#8c6ca1',
    500: '#5b327b',
    950: '#000000',
  },
}
SCSS
$custom: #5b327b;
$custom-light: #8c6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b327b",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 273.699,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40412,
    "c": 0.12291,
    "h": 307.7
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5B327B
secondary
#80A960
accent
#D2568C
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B327B

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

Preview Lab → · Contrast checker → · Palette generator →

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