#4D1847#4D1847

#4D1847 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.102 H 332.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4D1847
RGBrgb(77, 24, 71)
HSLhsl(307, 52%, 20%)
HSVhsv(307, 69%, 30%)
CMYKcmyk(0%, 68.8%, 7.8%, 69.8%)
CIE-LABlab(18.74, 31.46, -17.21)
CIE-LCHlch(18.74, 35.86, 331.32°)
OKLaboklab(31.27% 0.0903 -0.0471)
OKLCHoklch(31.27% 0.102 332.4)
XYZxyz(4.5245, 2.6863, 6.2402)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1847 #184D1E
analogous
#38184D #4D1847 #4D182D
triadic
#4D1847 #474D18 #18474D
tetradic
#4D1847 #4D3818 #184D1E #182D4D
square
#4D1847 #4D3818 #184D1E #182D4D
split-complementary
#4D1847 #2D4D18 #184D38
monochromatic
#170716 #1E091C #4D1847 #7C2772 #AA359D

Accessibility & contrast

On white

13.66
#4D1847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D1847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1847
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1847#FFFFFF#000000##FFFFFF
##4D18471.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162948
Deuteranopia (green-blind)
#283046
Tritanopia (blue-blind)
#501D2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1847;
/* rgb */ color: rgb(77, 24, 71);
/* oklch */ color: oklch(31.3% 0.102 332.4);
Tailwind
colors: {
  custom: {
    50: '#81597a',
    500: '#4d1847',
    950: '#000000',
  },
}
SCSS
$custom: #4d1847;
$custom-light: #81597a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1847",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 71
  },
  "hsl": {
    "h": 306.792,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31273,
    "c": 0.10183,
    "h": 332.4
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#4D1847
secondary
#3D8445
accent
#DC5C4C
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4D1847

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

Preview Lab → · Contrast checker → · Palette generator →

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