#5E2772#5E2772

#5E2772 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.6% C 0.131 H 315.9°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5E2772
RGBrgb(94, 39, 114)
HSLhsl(284, 49%, 30%)
HSVhsv(284, 66%, 45%)
CMYKcmyk(17.5%, 65.8%, 0%, 55.3%)
CIE-LABlab(26.87, 37.76, -32.61)
CIE-LCHlch(26.87, 49.89, 319.18°)
OKLaboklab(38.58% 0.0944 -0.0914)
OKLCHoklch(38.58% 0.131 315.9)
XYZxyz(8.3784, 5.0459, 16.4489)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2772 #3B7227
analogous
#382772 #5E2772 #722761
triadic
#5E2772 #725E27 #27725E
tetradic
#5E2772 #723827 #3B7227 #276172
square
#5E2772 #723827 #3B7227 #276172
split-complementary
#5E2772 #617227 #277238
monochromatic
#130817 #381744 #5E2772 #8437A0 #A550C3

Accessibility & contrast

On white

10.45
#5E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2772
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2772#FFFFFF#000000##FFFFFF
##5E27721.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2772;
/* rgb */ color: rgb(94, 39, 114);
/* oklch */ color: oklch(38.6% 0.131 315.9);
Tailwind
colors: {
  custom: {
    50: '#8e659b',
    500: '#5e2772',
    950: '#000000',
  },
}
SCSS
$custom: #5e2772;
$custom-light: #8e659b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2772",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 284,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.13139,
    "h": 315.9
  },
  "luminance": 0.05046
}

Semantic roles & 50–950 ramp

primary
#5E2772
secondary
#67A450
accent
#D94F74
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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