#4D0C42#4D0C42

#4D0C42 is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.7% C 0.114 H 336.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#4D0C42
RGBrgb(77, 12, 66)
HSLhsl(310, 73%, 17%)
HSVhsv(310, 84%, 30%)
CMYKcmyk(0%, 84.4%, 14.3%, 69.8%)
CIE-LABlab(16.67, 35.59, -16.99)
CIE-LCHlch(16.67, 39.44, 334.49°)
OKLaboklab(29.68% 0.1045 -0.0463)
OKLCHoklch(29.68% 0.114 336.1)
XYZxyz(4.1755, 2.2345, 5.3646)
Luminance0.0223 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0C42 #0C4D17
analogous
#380C4D #4D0C42 #4D0C21
triadic
#4D0C42 #424D0C #0C424D
tetradic
#4D0C42 #4D380C #0C4D17 #0C214D
square
#4D0C42 #4D380C #0C4D17 #0C214D
split-complementary
#4D0C42 #214D0C #0C4D38
monochromatic
#1A0417 #1A0417 #4D0C42 #82146F #B71D9D

Accessibility & contrast

On white

14.51
#4D0C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4D0C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0C42
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0C42#FFFFFF#000000##FFFFFF
##4D0C421.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2343
Deuteranopia (green-blind)
#242D41
Tritanopia (blue-blind)
#511126
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4d0c42;
/* rgb */ color: rgb(77, 12, 66);
/* oklch */ color: oklch(29.7% 0.114 336.1);
Tailwind
colors: {
  custom: {
    50: '#825376',
    500: '#4d0c42',
    950: '#000000',
  },
}
SCSS
$custom: #4d0c42;
$custom-light: #825376;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0c42",
  "rgb": {
    "r": 77,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 310.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29684,
    "c": 0.1143,
    "h": 336.1
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#4D0C42
secondary
#2C893C
accent
#F05738
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #4D0C42

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

Preview Lab → · Contrast checker → · Palette generator →

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