#4D1548#4D1548

#4D1548 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.0% C 0.107 H 331.6°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#4D1548
RGBrgb(77, 21, 72)
HSLhsl(305, 57%, 19%)
HSVhsv(305, 73%, 30%)
CMYKcmyk(0%, 72.7%, 6.5%, 69.8%)
CIE-LABlab(18.29, 33.07, -18.61)
CIE-LCHlch(18.29, 37.95, 330.63°)
OKLaboklab(30.96% 0.0945 -0.0511)
OKLCHoklch(30.96% 0.107 331.6)
XYZxyz(4.4984, 2.5823, 6.3911)
Luminance0.0258 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1548 #154D1A
analogous
#36154D #4D1548 #4D152C
triadic
#4D1548 #484D15 #15484D
tetradic
#4D1548 #4D3615 #154D1A #152C4D
square
#4D1548 #4D3615 #154D1A #152C4D
split-complementary
#4D1548 #2C4D15 #154D36
monochromatic
#180716 #1D081B #4D1548 #7D2275 #AD2FA2

Accessibility & contrast

On white

13.85
#4D1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4D1548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1548
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1548#FFFFFF#000000##FFFFFF
##4D15481.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122849
Deuteranopia (green-blind)
#262F47
Tritanopia (blue-blind)
#501B2C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1548;
/* rgb */ color: rgb(77, 21, 72);
/* oklch */ color: oklch(31.0% 0.107 331.6);
Tailwind
colors: {
  custom: {
    50: '#81587b',
    500: '#4d1548',
    950: '#000000',
  },
}
SCSS
$custom: #4d1548;
$custom-light: #81587b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1548",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 305.357,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30961,
    "c": 0.10744,
    "h": 331.6
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#4D1548
secondary
#398540
accent
#E05547
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4D1548

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

Preview Lab → · Contrast checker → · Palette generator →

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