#4A1240#4A1240

#4A1240 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.6% C 0.103 H 335.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#4A1240
RGBrgb(74, 18, 64)
HSLhsl(311, 61%, 18%)
HSVhsv(311, 76%, 29%)
CMYKcmyk(0%, 75.7%, 13.5%, 71%)
CIE-LABlab(16.79, 32.08, -15.45)
CIE-LCHlch(16.79, 35.60, 334.29°)
OKLaboklab(29.62% 0.0938 -0.0421)
OKLCHoklch(29.62% 0.103 335.8)
XYZxyz(3.9658, 2.2590, 5.0766)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1240 #124A1C
analogous
#38124A #4A1240 #4A1224
triadic
#4A1240 #404A12 #12404A
tetradic
#4A1240 #4A3812 #124A1C #12244A
square
#4A1240 #4A3812 #124A1C #12244A
split-complementary
#4A1240 #244A12 #124A38
monochromatic
#190615 #190615 #4A1240 #7B1E6B #AC2A95

Accessibility & contrast

On white

14.46
#4A1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1240
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1240#FFFFFF#000000##FFFFFF
##4A12401.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#252C3F
Tritanopia (blue-blind)
#4E1627
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a1240;
/* rgb */ color: rgb(74, 18, 64);
/* oklch */ color: oklch(29.6% 0.103 335.8);
Tailwind
colors: {
  custom: {
    50: '#7f5575',
    500: '#4a1240',
    950: '#000000',
  },
}
SCSS
$custom: #4a1240;
$custom-light: #7f5575;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1240",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 310.714,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2962,
    "c": 0.10282,
    "h": 335.8
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#4A1240
secondary
#358343
accent
#E46044
background
#F7F5F7
surface
#EEE9ED
border
#C9C5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A1240

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

Preview Lab → · Contrast checker → · Palette generator →

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