#5E2972#5E2972

#5E2972 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 38.9% C 0.128 H 315.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5E2972
RGBrgb(94, 41, 114)
HSLhsl(284, 47%, 30%)
HSVhsv(284, 64%, 45%)
CMYKcmyk(17.5%, 64%, 0%, 55.3%)
CIE-LABlab(27.24, 36.72, -32.01)
CIE-LCHlch(27.24, 48.72, 318.93°)
OKLaboklab(38.85% 0.0917 -0.0897)
OKLCHoklch(38.85% 0.128 315.6)
XYZxyz(8.4458, 5.1808, 16.4714)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2972 #3D7229
analogous
#3A2972 #5E2972 #722961
triadic
#5E2972 #725E29 #29725E
tetradic
#5E2972 #723A29 #3D7229 #296172
square
#5E2972 #723A29 #3D7229 #296172
split-complementary
#5E2972 #617229 #29723A
monochromatic
#140918 #391945 #5E2972 #83399F #A354C1

Accessibility & contrast

On white

10.31
#5E2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2972
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2972#FFFFFF#000000##FFFFFF
##5E29721.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#5D3649
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2972;
/* rgb */ color: rgb(94, 41, 114);
/* oklch */ color: oklch(38.9% 0.128 315.6);
Tailwind
colors: {
  custom: {
    50: '#8e669b',
    500: '#5e2972',
    950: '#000000',
  },
}
SCSS
$custom: #5e2972;
$custom-light: #8e669b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2972",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 283.562,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.12826,
    "h": 315.6
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#5E2972
secondary
#69A453
accent
#D75176
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E2972

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

Preview Lab → · Contrast checker → · Palette generator →

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