#4D184E#4D184E

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

Color values

HEX#4D184E
RGBrgb(77, 24, 78)
HSLhsl(299, 53%, 20%)
HSVhsv(299, 69%, 31%)
CMYKcmyk(1.3%, 69.2%, 0%, 69.4%)
CIE-LABlab(19.15, 32.84, -21.36)
CIE-LCHlch(19.15, 39.17, 326.96°)
OKLaboklab(31.7% 0.091 -0.0591)
OKLCHoklch(31.7% 0.108 327)
XYZxyz(4.7623, 2.7814, 7.4923)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D184E #194E18
analogous
#32184E #4D184E #4E1834
triadic
#4D184E #4E4D18 #184E4D
tetradic
#4D184E #4E3218 #194E18 #18344E
square
#4D184E #4E3218 #194E18 #18344E
split-complementary
#4D184E #344E18 #184E32
monochromatic
#170717 #1F0A1F #4D184E #7B267D #A935AC

Accessibility & contrast

On white

13.49
#4D184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D184E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D184E#FFFFFF#000000##FFFFFF
##4D184E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#4F1F30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d184e;
/* rgb */ color: rgb(77, 24, 78);
/* oklch */ color: oklch(31.7% 0.108 327.0);
Tailwind
colors: {
  custom: {
    50: '#815980',
    500: '#4d184e',
    950: '#000000',
  },
}
SCSS
$custom: #4d184e;
$custom-light: #815980;
$custom-dark: #000000;
JSON
{
  "hex": "#4d184e",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 298.889,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.10848,
    "h": 327
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#4D184E
secondary
#3E853D
accent
#DC4B4E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D184E

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

Preview Lab → · Contrast checker → · Palette generator →

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