#40062D#40062D

#40062D is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.097 H 345.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#40062D
RGBrgb(64, 6, 45)
HSLhsl(320, 83%, 14%)
HSVhsv(320, 91%, 25%)
CMYKcmyk(0%, 90.6%, 29.7%, 74.9%)
CIE-LABlab(12.02, 30.88, -9.38)
CIE-LCHlch(12.02, 32.28, 343.10°)
OKLaboklab(25.45% 0.0938 -0.025)
OKLCHoklch(25.45% 0.097 345.1)
XYZxyz(2.6533, 1.4100, 2.6145)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062D #064019
analogous
#360640 #40062D #400610
triadic
#40062D #2D4006 #062D40
tetradic
#40062D #403606 #064019 #061040
square
#40062D #403606 #064019 #061040
split-complementary
#40062D #104006 #064036
monochromatic
#1C0314 #1C0314 #40062D #780B54 #B0107C

Accessibility & contrast

On white

16.38
#40062D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#40062D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40062D
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062D#FFFFFF#000000##FFFFFF
##40062D1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192E
Deuteranopia (green-blind)
#20232C
Tritanopia (blue-blind)
#450519
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40062d;
/* rgb */ color: rgb(64, 6, 45);
/* oklch */ color: oklch(25.4% 0.097 345.1);
Tailwind
colors: {
  custom: {
    50: '#784e66',
    500: '#40062d',
    950: '#000000',
  },
}
SCSS
$custom: #40062d;
$custom-light: #784e66;
$custom-dark: #000000;
JSON
{
  "hex": "#40062d",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 45
  },
  "hsl": {
    "h": 319.655,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2545,
    "c": 0.09705,
    "h": 345.1
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#40062D
secondary
#228041
accent
#F9712F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40062D

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

Preview Lab → · Contrast checker → · Palette generator →

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