#40122A#40122A

#40122A is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.7% C 0.077 H 351.3°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#40122A
RGBrgb(64, 18, 42)
HSLhsl(329, 56%, 16%)
HSVhsv(329, 72%, 25%)
CMYKcmyk(0%, 71.9%, 34.4%, 74.9%)
CIE-LABlab(13.77, 25.16, -4.53)
CIE-LCHlch(13.77, 25.56, 349.80°)
OKLaboklab(26.68% 0.0765 -0.0117)
OKLCHoklch(26.68% 0.077 351.3)
XYZxyz(2.7487, 1.6901, 2.3715)
Luminance0.0169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122A #124028
analogous
#3F1240 #40122A #401213
triadic
#40122A #2A4012 #122A40
tetradic
#40122A #403F12 #124028 #121340
square
#40122A #403F12 #124028 #121340
split-complementary
#40122A #134012 #12403F
monochromatic
#180710 #180710 #40122A #701F49 #A02D69

Accessibility & contrast

On white

15.70
#40122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40122A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40122A
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122A#FFFFFF#000000##FFFFFF
##40122A1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191E2B
Deuteranopia (green-blind)
#252629
Tritanopia (blue-blind)
#45101C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40122a;
/* rgb */ color: rgb(64, 18, 42);
/* oklch */ color: oklch(26.7% 0.077 351.3);
Tailwind
colors: {
  custom: {
    50: '#775363',
    500: '#40122a',
    950: '#000000',
  },
}
SCSS
$custom: #40122a;
$custom-light: #775363;
$custom-dark: #000000;
JSON
{
  "hex": "#40122a",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 328.696,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2668,
    "c": 0.07743,
    "h": 351.3
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#40122A
secondary
#357955
accent
#DF9148
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40122A

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

Preview Lab → · Contrast checker → · Palette generator →

#40122A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva