#40072C#40072C

#40072C is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.095 H 346.3°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#40072C
RGBrgb(64, 7, 44)
HSLhsl(321, 80%, 14%)
HSVhsv(321, 89%, 25%)
CMYKcmyk(0%, 89.1%, 31.2%, 74.9%)
CIE-LABlab(12.12, 30.33, -8.50)
CIE-LCHlch(12.12, 31.50, 344.34°)
OKLaboklab(25.5% 0.0923 -0.0225)
OKLCHoklch(25.5% 0.095 346.3)
XYZxyz(2.6451, 1.4241, 2.5180)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40072C #07401B
analogous
#380740 #40072C #400710
triadic
#40072C #2C4007 #072C40
tetradic
#40072C #403807 #07401B #071040
square
#40072C #403807 #07401B #071040
split-complementary
#40072C #104007 #074038
monochromatic
#1C0313 #1C0313 #40072C #770D52 #AE1378

Accessibility & contrast

On white

16.34
#40072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40072C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40072C
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40072C#FFFFFF#000000##FFFFFF
##40072C1.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2D
Deuteranopia (green-blind)
#21232B
Tritanopia (blue-blind)
#450618
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40072c;
/* rgb */ color: rgb(64, 7, 44);
/* oklch */ color: oklch(25.5% 0.095 346.3);
Tailwind
colors: {
  custom: {
    50: '#784e65',
    500: '#40072c',
    950: '#000000',
  },
}
SCSS
$custom: #40072c;
$custom-light: #784e65;
$custom-dark: #000000;
JSON
{
  "hex": "#40072c",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 321.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25501,
    "c": 0.09499,
    "h": 346.3
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#40072C
secondary
#247F44
accent
#F77631
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40072C

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

Preview Lab → · Contrast checker → · Palette generator →

#40072C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva