#4D184F#4D184F

#4D184F is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.109 H 326.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#4D184F
RGBrgb(77, 24, 79)
HSLhsl(298, 53%, 20%)
HSVhsv(298, 70%, 31%)
CMYKcmyk(2.5%, 69.6%, 0%, 69%)
CIE-LABlab(19.21, 33.04, -21.94)
CIE-LCHlch(19.21, 39.66, 326.41°)
OKLaboklab(31.76% 0.0911 -0.0607)
OKLCHoklch(31.76% 0.109 326.3)
XYZxyz(4.7984, 2.7959, 7.6825)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D184F #1A4F18
analogous
#31184F #4D184F #4F1835
triadic
#4D184F #4F4D18 #184F4D
tetradic
#4D184F #4F3118 #1A4F18 #18354F
square
#4D184F #4F3118 #1A4F18 #18354F
split-complementary
#4D184F #354F18 #184F31
monochromatic
#170717 #1F0A20 #4D184F #7B267E #A935AD

Accessibility & contrast

On white

13.47
#4D184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D184F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D184F#FFFFFF#000000##FFFFFF
##4D184F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#24314E
Tritanopia (blue-blind)
#4F2031
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d184f;
/* rgb */ color: rgb(77, 24, 79);
/* oklch */ color: oklch(31.8% 0.109 326.3);
Tailwind
colors: {
  custom: {
    50: '#815980',
    500: '#4d184f',
    950: '#000000',
  },
}
SCSS
$custom: #4d184f;
$custom-light: #815980;
$custom-dark: #000000;
JSON
{
  "hex": "#4d184f",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 297.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31763,
    "c": 0.10946,
    "h": 326.3
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#4D184F
secondary
#40863D
accent
#DD4B50
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4D184F

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

Preview Lab → · Contrast checker → · Palette generator →

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