#4E1E50#4E1E50

#4E1E50 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.101 H 326.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4E1E50
RGBrgb(78, 30, 80)
HSLhsl(298, 45%, 22%)
HSVhsv(298, 63%, 31%)
CMYKcmyk(2.5%, 62.5%, 0%, 68.6%)
CIE-LABlab(20.55, 30.48, -20.49)
CIE-LCHlch(20.55, 36.73, 326.09°)
OKLaboklab(32.79% 0.0839 -0.0566)
OKLCHoklch(32.79% 0.101 326)
XYZxyz(5.0540, 3.1277, 7.9254)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E50 #20501E
analogous
#351E50 #4E1E50 #501E39
triadic
#4E1E50 #504E1E #1E504E
tetradic
#4E1E50 #50351E #20501E #1E3950
square
#4E1E50 #50351E #20501E #1E3950
split-complementary
#4E1E50 #39501E #1E5035
monochromatic
#160816 #230D23 #4E1E50 #792F7D #A53FA9

Accessibility & contrast

On white

12.92
#4E1E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1E50
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E50#FFFFFF#000000##FFFFFF
##4E1E501.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E52
Deuteranopia (green-blind)
#28344F
Tritanopia (blue-blind)
#502433
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1e50;
/* rgb */ color: rgb(78, 30, 80);
/* oklch */ color: oklch(32.8% 0.101 326.0);
Tailwind
colors: {
  custom: {
    50: '#815d81',
    500: '#4e1e50',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e50;
$custom-light: #815d81;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e50",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 297.6,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32792,
    "c": 0.1012,
    "h": 326
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#4E1E50
secondary
#478545
accent
#D55358
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E1E50

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

Preview Lab → · Contrast checker → · Palette generator →

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