#4E1D51#4E1D51

#4E1D51 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.104 H 325.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4E1D51
RGBrgb(78, 29, 81)
HSLhsl(297, 47%, 22%)
HSVhsv(297, 64%, 32%)
CMYKcmyk(3.7%, 64.2%, 0%, 68.2%)
CIE-LABlab(20.41, 31.22, -21.38)
CIE-LCHlch(20.41, 37.84, 325.60°)
OKLaboklab(32.71% 0.0855 -0.0591)
OKLCHoklch(32.71% 0.104 325.3)
XYZxyz(5.0663, 3.0928, 8.1131)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D51 #20511D
analogous
#341D51 #4E1D51 #511D3A
triadic
#4E1D51 #514E1D #1D514E
tetradic
#4E1D51 #51341D #20511D #1D3A51
square
#4E1D51 #51341D #20511D #1D3A51
split-complementary
#4E1D51 #3A511D #1D5134
monochromatic
#160817 #230D24 #4E1D51 #792D7E #A53DAB

Accessibility & contrast

On white

12.97
#4E1D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D51
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D51#FFFFFF#000000##FFFFFF
##4E1D511.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152D53
Deuteranopia (green-blind)
#263350
Tritanopia (blue-blind)
#502434
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1d51;
/* rgb */ color: rgb(78, 29, 81);
/* oklch */ color: oklch(32.7% 0.104 325.3);
Tailwind
colors: {
  custom: {
    50: '#815c82',
    500: '#4e1d51',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d51;
$custom-light: #815c82;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d51",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 296.538,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32711,
    "c": 0.10394,
    "h": 325.3
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#4E1D51
secondary
#478644
accent
#D75159
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E1D51

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

Preview Lab → · Contrast checker → · Palette generator →

#4E1D51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva