#4D0C4A#4D0C4A

#4D0C4A is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.2% C 0.121 H 330.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#4D0C4A
RGBrgb(77, 12, 74)
HSLhsl(303, 73%, 17%)
HSVhsv(303, 84%, 30%)
CMYKcmyk(0%, 84.4%, 3.9%, 69.8%)
CIE-LABlab(17.16, 36.99, -21.77)
CIE-LCHlch(17.16, 42.92, 329.52°)
OKLaboklab(30.19% 0.1049 -0.0601)
OKLCHoklch(30.19% 0.121 330.2)
XYZxyz(4.4281, 2.3355, 6.6948)
Luminance0.0233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0C4A #0C4D0F
analogous
#2F0C4D #4D0C4A #4D0C2A
triadic
#4D0C4A #4A4D0C #0C4A4D
tetradic
#4D0C4A #4D2F0C #0C4D0F #0C2A4D
square
#4D0C4A #4D2F0C #0C4D0F #0C2A4D
split-complementary
#4D0C4A #2A4D0C #0C4D2F
monochromatic
#1A0419 #1A0419 #4D0C4A #82147D #B71DB0

Accessibility & contrast

On white

14.31
#4D0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4D0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0C4A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0C4A#FFFFFF#000000##FFFFFF
##4D0C4A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#202D48
Tritanopia (blue-blind)
#50152B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d0c4a;
/* rgb */ color: rgb(77, 12, 74);
/* oklch */ color: oklch(30.2% 0.121 330.2);
Tailwind
colors: {
  custom: {
    50: '#82547d',
    500: '#4d0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #4d0c4a;
$custom-light: #82547d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0c4a",
  "rgb": {
    "r": 77,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 302.769,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.30188,
    "c": 0.12088,
    "h": 330.2
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#4D0C4A
secondary
#2C8930
accent
#F04138
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4D0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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