#4E1A47#4E1A47

#4E1A47 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.7% C 0.099 H 333.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#4E1A47
RGBrgb(78, 26, 71)
HSLhsl(308, 50%, 20%)
HSVhsv(308, 67%, 31%)
CMYKcmyk(0%, 66.7%, 9%, 69.4%)
CIE-LABlab(19.28, 30.77, -16.35)
CIE-LCHlch(19.28, 34.85, 332.01°)
OKLaboklab(31.7% 0.0886 -0.0446)
OKLCHoklch(31.7% 0.099 333.3)
XYZxyz(4.6486, 2.8138, 6.2583)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A47 #1A4E21
analogous
#3B1A4E #4E1A47 #4E1A2D
triadic
#4E1A47 #474E1A #1A474E
tetradic
#4E1A47 #4E3B1A #1A4E21 #1A2D4E
square
#4E1A47 #4E3B1A #1A4E21 #1A2D4E
split-complementary
#4E1A47 #2D4E1A #1A4E3B
monochromatic
#170815 #200B1D #4E1A47 #7C2971 #AA399B

Accessibility & contrast

On white

13.44
#4E1A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4E1A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A47
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A47#FFFFFF#000000##FFFFFF
##4E1A471.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192A48
Deuteranopia (green-blind)
#293146
Tritanopia (blue-blind)
#521E2D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1a47;
/* rgb */ color: rgb(78, 26, 71);
/* oklch */ color: oklch(31.7% 0.099 333.3);
Tailwind
colors: {
  custom: {
    50: '#815a7a',
    500: '#4e1a47',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a47;
$custom-light: #815a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a47",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 71
  },
  "hsl": {
    "h": 308.077,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31703,
    "c": 0.09925,
    "h": 333.3
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#4E1A47
secondary
#408449
accent
#DA614E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4E1A47

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

Preview Lab → · Contrast checker → · Palette generator →

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