#4D1B4E#4D1B4E

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

Color values

HEX#4D1B4E
RGBrgb(77, 27, 78)
HSLhsl(299, 49%, 21%)
HSVhsv(299, 65%, 31%)
CMYKcmyk(1.3%, 65.4%, 0%, 69.4%)
CIE-LABlab(19.69, 31.34, -20.50)
CIE-LCHlch(19.69, 37.45, 326.81°)
OKLaboklab(32.09% 0.0868 -0.0566)
OKLCHoklch(32.09% 0.104 326.9)
XYZxyz(4.8276, 2.9120, 7.5140)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B4E #1C4E1B
analogous
#331B4E #4D1B4E #4E1B35
triadic
#4D1B4E #4E4D1B #1B4E4D
tetradic
#4D1B4E #4E331B #1C4E1B #1B354E
square
#4D1B4E #4E331B #1C4E1B #1B354E
split-complementary
#4D1B4E #354E1B #1B4E33
monochromatic
#160817 #200B21 #4D1B4E #7A2B7B #A73AA9

Accessibility & contrast

On white

13.27
#4D1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B4E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B4E#FFFFFF#000000##FFFFFF
##4D1B4E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C50
Deuteranopia (green-blind)
#26324D
Tritanopia (blue-blind)
#4F2231
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1b4e;
/* rgb */ color: rgb(77, 27, 78);
/* oklch */ color: oklch(32.1% 0.104 326.9);
Tailwind
colors: {
  custom: {
    50: '#815b80',
    500: '#4d1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b4e;
$custom-light: #815b80;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b4e",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 298.824,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32092,
    "c": 0.10363,
    "h": 326.9
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#4D1B4E
secondary
#428441
accent
#D85052
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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