#4E214F#4E214F

#4E214F is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.2% C 0.095 H 326.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4E214F
RGBrgb(78, 33, 79)
HSLhsl(299, 41%, 22%)
HSVhsv(299, 58%, 31%)
CMYKcmyk(1.3%, 58.2%, 0%, 69%)
CIE-LABlab(21.10, 28.62, -18.95)
CIE-LCHlch(21.10, 34.33, 326.50°)
OKLaboklab(33.18% 0.0792 -0.0521)
OKLCHoklch(33.18% 0.095 326.6)
XYZxyz(5.0969, 3.2722, 7.7588)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E214F #224F21
analogous
#37214F #4E214F #4F2139
triadic
#4E214F #4F4E21 #214F4E
tetradic
#4E214F #4F3721 #224F21 #21394F
square
#4E214F #4F3721 #224F21 #21394F
split-complementary
#4E214F #394F21 #214F37
monochromatic
#150916 #230F24 #4E214F #79337A #A345A5

Accessibility & contrast

On white

12.69
#4E214F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E214F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E214F
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E214F#FFFFFF#000000##FFFFFF
##4E214F1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2F50
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#502634
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e214f;
/* rgb */ color: rgb(78, 33, 79);
/* oklch */ color: oklch(33.2% 0.095 326.6);
Tailwind
colors: {
  custom: {
    50: '#815f80',
    500: '#4e214f',
    950: '#000000',
  },
}
SCSS
$custom: #4e214f;
$custom-light: #815f80;
$custom-dark: #000000;
JSON
{
  "hex": "#4e214f",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 79
  },
  "hsl": {
    "h": 298.696,
    "s": 41.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.09479,
    "h": 326.6
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#4E214F
secondary
#4A8349
accent
#D1575A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E214F

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

Preview Lab → · Contrast checker → · Palette generator →

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