#4A0C21#4A0C21

#4A0C21 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.6% C 0.093 H 5.7°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#4A0C21
RGBrgb(74, 12, 33)
HSLhsl(340, 72%, 17%)
HSVhsv(340, 84%, 29%)
CMYKcmyk(0%, 83.8%, 55.4%, 71%)
CIE-LABlab(14.56, 30.22, 3.49)
CIE-LCHlch(14.56, 30.42, 6.59°)
OKLaboklab(27.55% 0.0923 0.0092)
OKLCHoklch(27.55% 0.093 5.7)
XYZxyz(3.2303, 1.8290, 1.6215)
Luminance0.0183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C21 #0C4A35
analogous
#4A0C40 #4A0C21 #4A160C
triadic
#4A0C21 #214A0C #0C214A
tetradic
#4A0C21 #404A0C #0C4A35 #160C4A
square
#4A0C21 #404A0C #0C4A35 #160C4A
split-complementary
#4A0C21 #0C4A16 #0C404A
monochromatic
#1A040C #1A040C #4A0C21 #7F1538 #B31D50

Accessibility & contrast

On white

15.38
#4A0C21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#4A0C21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0C21
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C21#FFFFFF#000000##FFFFFF
##4A0C211.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1D21
Deuteranopia (green-blind)
#2C2920
Tritanopia (blue-blind)
#510115
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #4a0c21;
/* rgb */ color: rgb(74, 12, 33);
/* oklch */ color: oklch(27.6% 0.093 5.7);
Tailwind
colors: {
  custom: {
    50: '#81525b',
    500: '#4a0c21',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c21;
$custom-light: #81525b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c21",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 33
  },
  "hsl": {
    "h": 339.677,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27551,
    "c": 0.09278,
    "h": 5.7
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#4A0C21
secondary
#2C8667
accent
#EFB139
background
#F8F4F5
surface
#EFE7E9
border
#CAC3C5
text
#0B0204
muted
#7C7879

Preview Lab

Preview with #4A0C21

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

Preview Lab → · Contrast checker → · Palette generator →

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