#4E1F4F#4E1F4F

#4E1F4F is a dark, moderate purple. Relative luminance 0.032; OKLCH L 32.9% C 0.098 H 326.7°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#4E1F4F
RGBrgb(78, 31, 79)
HSLhsl(299, 44%, 22%)
HSVhsv(299, 61%, 31%)
CMYKcmyk(1.3%, 60.8%, 0%, 69%)
CIE-LABlab(20.69, 29.73, -19.59)
CIE-LCHlch(20.69, 35.61, 326.62°)
OKLaboklab(32.88% 0.0823 -0.054)
OKLCHoklch(32.88% 0.098 326.7)
XYZxyz(5.0431, 3.1645, 7.7408)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F4F #204F1F
analogous
#361F4F #4E1F4F #4F1F38
triadic
#4E1F4F #4F4E1F #1F4F4E
tetradic
#4E1F4F #4F361F #204F1F #1F384F
square
#4E1F4F #4F361F #204F1F #1F384F
split-complementary
#4E1F4F #384F1F #1F4F36
monochromatic
#160916 #230E23 #4E1F4F #79307B #A541A7

Accessibility & contrast

On white

12.86
#4E1F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F4F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F4F#FFFFFF#000000##FFFFFF
##4E1F4F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E51
Deuteranopia (green-blind)
#29344E
Tritanopia (blue-blind)
#502533
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1f4f;
/* rgb */ color: rgb(78, 31, 79);
/* oklch */ color: oklch(32.9% 0.098 326.7);
Tailwind
colors: {
  custom: {
    50: '#815e80',
    500: '#4e1f4f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f4f;
$custom-light: #815e80;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f4f",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 298.75,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32878,
    "c": 0.0984,
    "h": 326.7
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#4E1F4F
secondary
#478446
accent
#D35457
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E1F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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