#5E328E#5E328E

#5E328E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.147 H 302.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5E328E
RGBrgb(94, 50, 142)
HSLhsl(269, 48%, 38%)
HSVhsv(269, 65%, 56%)
CMYKcmyk(33.8%, 64.8%, 0%, 44.3%)
CIE-LABlab(30.91, 38.76, -43.68)
CIE-LCHlch(30.91, 58.39, 311.58°)
OKLaboklab(42.12% 0.079 -0.1239)
OKLCHoklch(42.12% 0.147 302.5)
XYZxyz(10.6380, 6.6139, 26.3021)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E328E #628E32
analogous
#32348E #5E328E #8C328E
triadic
#5E328E #8E5E32 #328E5E
tetradic
#5E328E #8E3234 #628E32 #328E8C
square
#5E328E #8E3234 #628E32 #328E8C
split-complementary
#5E328E #8E8C32 #348E32
monochromatic
#221233 #402261 #5E328E #7C42BB #9B6ECC

Accessibility & contrast

On white

9.04
#5E328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E328E
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E328E#FFFFFF#000000##FFFFFF
##5E328E1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#54465B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e328e;
/* rgb */ color: rgb(94, 50, 142);
/* oklch */ color: oklch(42.1% 0.147 302.5);
Tailwind
colors: {
  custom: {
    50: '#8f6cb0',
    500: '#5e328e',
    950: '#000000',
  },
}
SCSS
$custom: #5e328e;
$custom-light: #8f6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e328e",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 268.696,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42117,
    "c": 0.14698,
    "h": 302.5
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#5E328E
secondary
#90B468
accent
#D85097
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E328E

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

Preview Lab → · Contrast checker → · Palette generator →

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