#4A1228#4A1228

#4A1228 is a dark, moderate pink. Relative luminance 0.020; OKLCH L 28.5% C 0.087 H 0.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#4A1228
RGBrgb(74, 18, 40)
HSLhsl(336, 61%, 18%)
HSVhsv(336, 76%, 29%)
CMYKcmyk(0%, 75.7%, 45.9%, 71%)
CIE-LABlab(15.71, 28.46, 0.02)
CIE-LCHlch(15.71, 28.46, 0.04°)
OKLaboklab(28.47% 0.0872 0.0004)
OKLCHoklch(28.47% 0.087 0.3)
XYZxyz(3.4236, 2.0421, 2.2209)
Luminance0.0204 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1228 #124A34
analogous
#4A1244 #4A1228 #4A1812
triadic
#4A1228 #284A12 #12284A
tetradic
#4A1228 #444A12 #124A34 #18124A
square
#4A1228 #444A12 #124A34 #18124A
split-complementary
#4A1228 #124A18 #12444A
monochromatic
#19060D #19060D #4A1228 #7B1E43 #AC2A5D

Accessibility & contrast

On white

14.91
#4A1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#4A1228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1228
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1228#FFFFFF#000000##FFFFFF
##4A12281.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2029
Deuteranopia (green-blind)
#2C2B27
Tritanopia (blue-blind)
#510B1B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #4a1228;
/* rgb */ color: rgb(74, 18, 40);
/* oklch */ color: oklch(28.5% 0.087 0.3);
Tailwind
colors: {
  custom: {
    50: '#805561',
    500: '#4a1228',
    950: '#000000',
  },
}
SCSS
$custom: #4a1228;
$custom-light: #805561;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1228",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 336.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28471,
    "c": 0.08715,
    "h": 0.3
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#4A1228
secondary
#358364
accent
#E4A544
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4A1228

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

Preview Lab → · Contrast checker → · Palette generator →

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