#4D1A4E#4D1A4E

#4D1A4E is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.0% C 0.105 H 326.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4D1A4E
RGBrgb(77, 26, 78)
HSLhsl(299, 50%, 20%)
HSVhsv(299, 67%, 31%)
CMYKcmyk(1.3%, 66.7%, 0%, 69.4%)
CIE-LABlab(19.50, 31.85, -20.80)
CIE-LCHlch(19.50, 38.04, 326.86°)
OKLaboklab(31.96% 0.0882 -0.0574)
OKLCHoklch(31.96% 0.105 326.9)
XYZxyz(4.8050, 2.8669, 7.5065)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A4E #1B4E1A
analogous
#331A4E #4D1A4E #4E1A35
triadic
#4D1A4E #4E4D1A #1A4E4D
tetradic
#4D1A4E #4E331A #1B4E1A #1A354E
square
#4D1A4E #4E331A #1B4E1A #1A354E
split-complementary
#4D1A4E #354E1A #1A4E33
monochromatic
#170817 #200B20 #4D1A4E #7A297C #A839AA

Accessibility & contrast

On white

13.35
#4D1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4D1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A4E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A4E#FFFFFF#000000##FFFFFF
##4D1A4E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B50
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#4F2131
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1a4e;
/* rgb */ color: rgb(77, 26, 78);
/* oklch */ color: oklch(32.0% 0.105 326.9);
Tailwind
colors: {
  custom: {
    50: '#815b80',
    500: '#4d1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a4e;
$custom-light: #815b80;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a4e",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 298.846,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.10528,
    "h": 326.9
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#4D1A4E
secondary
#418440
accent
#DA4E51
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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