#4E204F#4E204F

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

Color values

HEX#4E204F
RGBrgb(78, 32, 79)
HSLhsl(299, 42%, 22%)
HSVhsv(299, 59%, 31%)
CMYKcmyk(1.3%, 59.5%, 0%, 69%)
CIE-LABlab(20.89, 29.18, -19.27)
CIE-LCHlch(20.89, 34.97, 326.56°)
OKLaboklab(33.03% 0.0807 -0.0531)
OKLCHoklch(33.03% 0.097 326.7)
XYZxyz(5.0696, 3.2175, 7.7496)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E204F #214F20
analogous
#37204F #4E204F #4F2039
triadic
#4E204F #4F4E20 #204F4E
tetradic
#4E204F #4F3720 #214F20 #20394F
square
#4E204F #4F3720 #214F20 #20394F
split-complementary
#4E204F #394F20 #204F37
monochromatic
#160916 #230E23 #4E204F #79327B #A443A6

Accessibility & contrast

On white

12.78
#4E204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E204F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E204F#FFFFFF#000000##FFFFFF
##4E204F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E51
Deuteranopia (green-blind)
#29344E
Tritanopia (blue-blind)
#502634
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e204f;
/* rgb */ color: rgb(78, 32, 79);
/* oklch */ color: oklch(33.0% 0.097 326.7);
Tailwind
colors: {
  custom: {
    50: '#815e80',
    500: '#4e204f',
    950: '#000000',
  },
}
SCSS
$custom: #4e204f;
$custom-light: #815e80;
$custom-dark: #000000;
JSON
{
  "hex": "#4e204f",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 298.723,
    "s": 42.342,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33027,
    "c": 0.09661,
    "h": 326.7
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#4E204F
secondary
#498347
accent
#D25658
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E204F

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

Preview Lab → · Contrast checker → · Palette generator →

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