#5E327B#5E327B

#5E327B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.124 H 309.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5E327B
RGBrgb(94, 50, 123)
HSLhsl(276, 42%, 34%)
HSVhsv(276, 59%, 48%)
CMYKcmyk(23.6%, 59.3%, 0%, 51.8%)
CIE-LABlab(29.64, 33.93, -33.89)
CIE-LCHlch(29.64, 47.95, 315.04°)
OKLaboklab(40.78% 0.0794 -0.0952)
OKLCHoklch(40.78% 0.124 309.8)
XYZxyz(9.3312, 6.0911, 19.4192)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E327B #4F7B32
analogous
#39327B #5E327B #7B3274
triadic
#5E327B #7B5E32 #327B5E
tetradic
#5E327B #7B3932 #4F7B32 #32747B
square
#5E327B #7B3932 #4F7B32 #32747B
split-complementary
#5E327B #747B32 #327B39
monochromatic
#1B0F24 #3D204F #5E327B #7F44A7 #9D66C1

Accessibility & contrast

On white

9.47
#5E327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E327B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E327B#FFFFFF#000000##FFFFFF
##5E327B1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#2A4779
Tritanopia (blue-blind)
#5A3F51
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e327b;
/* rgb */ color: rgb(94, 50, 123);
/* oklch */ color: oklch(40.8% 0.124 309.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ca1',
    500: '#5e327b',
    950: '#000000',
  },
}
SCSS
$custom: #5e327b;
$custom-light: #8e6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e327b",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 276.164,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40785,
    "c": 0.12397,
    "h": 309.8
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

primary
#5E327B
secondary
#7DA960
accent
#D25687
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E327B

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

Preview Lab → · Contrast checker → · Palette generator →

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