#4E204E#4E204E

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

Color values

HEX#4E204E
RGBrgb(78, 32, 78)
HSLhsl(300, 42%, 22%)
HSVhsv(300, 59%, 31%)
CMYKcmyk(0%, 59%, 0%, 69.4%)
CIE-LABlab(20.84, 28.97, -18.68)
CIE-LCHlch(20.84, 34.48, 327.18°)
OKLaboklab(32.97% 0.0806 -0.0514)
OKLCHoklch(32.97% 0.096 327.5)
XYZxyz(5.0335, 3.2031, 7.5594)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E204E #204E20
analogous
#37204E #4E204E #4E2037
triadic
#4E204E #4E4E20 #204E4E
tetradic
#4E204E #4E3720 #204E20 #20374E
square
#4E204E #4E3720 #204E20 #20374E
split-complementary
#4E204E #374E20 #204E37
monochromatic
#160916 #230E23 #4E204E #793279 #A544A5

Accessibility & contrast

On white

12.80
#4E204E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E204E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E204E#FFFFFF#000000##FFFFFF
##4E204E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#2A344D
Tritanopia (blue-blind)
#502533
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e204e;
/* rgb */ color: rgb(78, 32, 78);
/* oklch */ color: oklch(33.0% 0.096 327.5);
Tailwind
colors: {
  custom: {
    50: '#815e7f',
    500: '#4e204e',
    950: '#000000',
  },
}
SCSS
$custom: #4e204e;
$custom-light: #815e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e204e",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 78
  },
  "hsl": {
    "h": 300,
    "s": 41.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32969,
    "c": 0.09557,
    "h": 327.5
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#4E204E
secondary
#478247
accent
#D25656
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E204E

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

Preview Lab → · Contrast checker → · Palette generator →

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