#5B327C#5B327C

#5B327C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.124 H 307.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5B327C
RGBrgb(91, 50, 124)
HSLhsl(273, 43%, 34%)
HSVhsv(273, 60%, 49%)
CMYKcmyk(26.6%, 59.7%, 0%, 51.4%)
CIE-LABlab(29.31, 33.36, -35.06)
CIE-LCHlch(29.31, 48.40, 313.57°)
OKLaboklab(40.48% 0.0753 -0.0987)
OKLCHoklch(40.48% 0.124 307.3)
XYZxyz(9.0923, 5.9607, 19.7364)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B327C #537C32
analogous
#36327C #5B327C #7C3278
triadic
#5B327C #7C5B32 #327C5B
tetradic
#5B327C #7C3632 #537C32 #32787C
square
#5B327C #7C3632 #537C32 #32787C
split-complementary
#5B327C #787C32 #327C36
monochromatic
#1B0F25 #3B2050 #5B327C #7B44A8 #9967C2

Accessibility & contrast

On white

9.58
#5B327C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B327C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B327C#FFFFFF#000000##FFFFFF
##5B327C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447E
Deuteranopia (green-blind)
#27457A
Tritanopia (blue-blind)
#564052
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b327c;
/* rgb */ color: rgb(91, 50, 124);
/* oklch */ color: oklch(40.5% 0.124 307.3);
Tailwind
colors: {
  custom: {
    50: '#8c6ca2',
    500: '#5b327c',
    950: '#000000',
  },
}
SCSS
$custom: #5b327c;
$custom-light: #8c6ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b327c",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 124
  },
  "hsl": {
    "h": 273.243,
    "s": 42.529,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.12415,
    "h": 307.3
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#5B327C
secondary
#81A961
accent
#D2558D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B327C

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

Preview Lab → · Contrast checker → · Palette generator →

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