#40162D#40162D

#40162D is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.4% C 0.072 H 348.9°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#40162D
RGBrgb(64, 22, 45)
HSLhsl(327, 49%, 17%)
HSVhsv(327, 66%, 25%)
CMYKcmyk(0%, 65.6%, 29.7%, 74.9%)
CIE-LABlab(14.70, 23.47, -5.31)
CIE-LCHlch(14.70, 24.06, 347.25°)
OKLaboklab(27.41% 0.0709 -0.0139)
OKLCHoklch(27.41% 0.072 348.9)
XYZxyz(2.8750, 1.8535, 2.6885)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40162D #164029
analogous
#3E1640 #40162D #401618
triadic
#40162D #2D4016 #162D40
tetradic
#40162D #403E16 #164029 #161840
square
#40162D #403E16 #164029 #161840
split-complementary
#40162D #184016 #16403E
monochromatic
#170810 #170810 #40162D #6E264D #9B356D

Accessibility & contrast

On white

15.32
#40162D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40162D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40162D
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40162D#FFFFFF#000000##FFFFFF
##40162D1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B202E
Deuteranopia (green-blind)
#26282C
Tritanopia (blue-blind)
#45151F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40162d;
/* rgb */ color: rgb(64, 22, 45);
/* oklch */ color: oklch(27.4% 0.072 348.9);
Tailwind
colors: {
  custom: {
    50: '#775665',
    500: '#40162d',
    950: '#000000',
  },
}
SCSS
$custom: #40162d;
$custom-light: #775665;
$custom-dark: #000000;
JSON
{
  "hex": "#40162d",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 45
  },
  "hsl": {
    "h": 327.143,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27411,
    "c": 0.07224,
    "h": 348.9
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#40162D
secondary
#3B7756
accent
#D88D4F
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40162D

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

Preview Lab → · Contrast checker → · Palette generator →

#40162D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva