#5E2672#5E2672

#5E2672 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.4% C 0.133 H 316.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2672
RGBrgb(94, 38, 114)
HSLhsl(284, 50%, 30%)
HSVhsv(284, 67%, 45%)
CMYKcmyk(17.5%, 66.7%, 0%, 55.3%)
CIE-LABlab(26.68, 38.27, -32.91)
CIE-LCHlch(26.68, 50.47, 319.31°)
OKLaboklab(38.45% 0.0957 -0.0923)
OKLCHoklch(38.45% 0.133 316)
XYZxyz(8.3460, 4.9811, 16.4381)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2672 #3A7226
analogous
#382672 #5E2672 #722660
triadic
#5E2672 #725E26 #26725E
tetradic
#5E2672 #723826 #3A7226 #266072
square
#5E2672 #723826 #3A7226 #266072
split-complementary
#5E2672 #607226 #267238
monochromatic
#130817 #381744 #5E2672 #8435A0 #A54EC4

Accessibility & contrast

On white

10.52
#5E2672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E2672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2672
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2672#FFFFFF#000000##FFFFFF
##5E26721.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3C74
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#5D3448
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e2672;
/* rgb */ color: rgb(94, 38, 114);
/* oklch */ color: oklch(38.4% 0.133 316.0);
Tailwind
colors: {
  custom: {
    50: '#8e649b',
    500: '#5e2672',
    950: '#000000',
  },
}
SCSS
$custom: #5e2672;
$custom-light: #8e649b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2672",
  "rgb": {
    "r": 94,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 284.211,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38447,
    "c": 0.13293,
    "h": 316
  },
  "luminance": 0.04981
}

Semantic roles & 50–950 ramp

primary
#5E2672
secondary
#66A54F
accent
#DA4E73
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5E2672

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

Preview Lab → · Contrast checker → · Palette generator →

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