#5E336A#5E336A

#5E336A is a dark, moderate purple. Relative luminance 0.058; OKLCH L 39.9% C 0.102 H 318.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5E336A
RGBrgb(94, 51, 106)
HSLhsl(287, 35%, 31%)
HSVhsv(287, 52%, 42%)
CMYKcmyk(11.3%, 51.9%, 0%, 58.4%)
CIE-LABlab(28.87, 29.31, -24.31)
CIE-LCHlch(28.87, 38.08, 320.33°)
OKLaboklab(39.9% 0.0763 -0.0674)
OKLCHoklch(39.9% 0.102 318.6)
XYZxyz(8.4011, 5.7882, 14.3076)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E336A #3F6A33
analogous
#42336A #5E336A #6A335A
triadic
#5E336A #6A5E33 #336A5E
tetradic
#5E336A #6A4233 #3F6A33 #335A6A
square
#5E336A #6A4233 #3F6A33 #335A6A
split-complementary
#5E336A #5A6A33 #336A42
monochromatic
#150B17 #391F41 #5E336A #834793 #A263B4

Accessibility & contrast

On white

9.73
#5E336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E336A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E336A#FFFFFF#000000##FFFFFF
##5E336A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29416C
Deuteranopia (green-blind)
#364668
Tritanopia (blue-blind)
#5E3B49
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e336a;
/* rgb */ color: rgb(94, 51, 106);
/* oklch */ color: oklch(39.9% 0.102 318.6);
Tailwind
colors: {
  custom: {
    50: '#8d6c95',
    500: '#5e336a',
    950: '#000000',
  },
}
SCSS
$custom: #5e336a;
$custom-light: #8d6c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e336a",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 286.909,
    "s": 35.032,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.10181,
    "h": 318.6
  },
  "luminance": 0.05788
}

Semantic roles & 50–950 ramp

primary
#5E336A
secondary
#6B9B5E
accent
#CB5D75
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5E336A

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

Preview Lab → · Contrast checker → · Palette generator →

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