#4C2140#4C2140

#4C2140 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.1% C 0.078 H 339.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#4C2140
RGBrgb(76, 33, 64)
HSLhsl(317, 39%, 21%)
HSVhsv(317, 57%, 30%)
CMYKcmyk(0%, 56.6%, 15.8%, 70.2%)
CIE-LABlab(20.02, 24.94, -10.42)
CIE-LCHlch(20.02, 27.03, 337.32°)
OKLaboklab(32.07% 0.0732 -0.028)
OKLCHoklch(32.07% 0.078 339.1)
XYZxyz(4.4498, 2.9947, 5.1932)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2140 #214C2D
analogous
#43214C #4C2140 #4C212B
triadic
#4C2140 #404C21 #21404C
tetradic
#4C2140 #4C4321 #214C2D #212B4C
square
#4C2140 #4C4321 #214C2D #212B4C
split-complementary
#4C2140 #2B4C21 #214C43
monochromatic
#150912 #210E1C #4C2140 #773464 #A14688

Accessibility & contrast

On white

13.13
#4C2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4C2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2140
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2140#FFFFFF#000000##FFFFFF
##4C21401.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232C41
Deuteranopia (green-blind)
#2F333F
Tritanopia (blue-blind)
#50222D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c2140;
/* rgb */ color: rgb(76, 33, 64);
/* oklch */ color: oklch(32.1% 0.078 339.1);
Tailwind
colors: {
  custom: {
    50: '#7f5e74',
    500: '#4c2140',
    950: '#000000',
  },
}
SCSS
$custom: #4c2140;
$custom-light: #7f5e74;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2140",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 316.744,
    "s": 39.45,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32067,
    "c": 0.0784,
    "h": 339.1
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#4C2140
secondary
#498058
accent
#CF7A58
background
#F7F5F7
surface
#EEE9ED
border
#C9C5C8
text
#0A0408
muted
#7C797B

Preview Lab

Preview with #4C2140

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

Preview Lab → · Contrast checker → · Palette generator →

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