#4D1F4E#4D1F4E

#4D1F4E is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.7% C 0.097 H 326.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4D1F4E
RGBrgb(77, 31, 78)
HSLhsl(299, 43%, 21%)
HSVhsv(299, 60%, 31%)
CMYKcmyk(1.3%, 60.3%, 0%, 69.4%)
CIE-LABlab(20.47, 29.21, -19.27)
CIE-LCHlch(20.47, 34.99, 326.58°)
OKLaboklab(32.67% 0.0808 -0.0531)
OKLCHoklch(32.67% 0.097 326.7)
XYZxyz(4.9256, 3.1081, 7.5467)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F4E #204E1F
analogous
#361F4E #4D1F4E #4E1F38
triadic
#4D1F4E #4E4D1F #1F4E4D
tetradic
#4D1F4E #4E361F #204E1F #1F384E
square
#4D1F4E #4E361F #204E1F #1F384E
split-complementary
#4D1F4E #384E1F #1F4E36
monochromatic
#160916 #220E22 #4D1F4E #78307A #A342A6

Accessibility & contrast

On white

12.95
#4D1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4D1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F4E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F4E#FFFFFF#000000##FFFFFF
##4D1F4E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E4F
Deuteranopia (green-blind)
#28334D
Tritanopia (blue-blind)
#4F2533
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d1f4e;
/* rgb */ color: rgb(77, 31, 78);
/* oklch */ color: oklch(32.7% 0.097 326.7);
Tailwind
colors: {
  custom: {
    50: '#805d80',
    500: '#4d1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f4e;
$custom-light: #805d80;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f4e",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 298.723,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.09669,
    "h": 326.7
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#4D1F4E
secondary
#478346
accent
#D35558
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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