#40062C#40062C

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

Color values

HEX#40062C
RGBrgb(64, 6, 44)
HSLhsl(321, 83%, 14%)
HSVhsv(321, 91%, 25%)
CMYKcmyk(0%, 90.6%, 31.2%, 74.9%)
CIE-LABlab(11.97, 30.74, -8.72)
CIE-LCHlch(11.97, 31.95, 344.16°)
OKLaboklab(25.4% 0.0936 -0.0231)
OKLCHoklch(25.4% 0.096 346.1)
XYZxyz(2.6342, 1.4024, 2.5143)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062C #06401A
analogous
#370640 #40062C #40060F
triadic
#40062C #2C4006 #062C40
tetradic
#40062C #403706 #06401A #060F40
square
#40062C #403706 #06401A #060F40
split-complementary
#40062C #0F4006 #064037
monochromatic
#1C0313 #1C0313 #40062C #780B52 #B01079

Accessibility & contrast

On white

16.40
#40062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40062C
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062C#FFFFFF#000000##FFFFFF
##40062C1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192D
Deuteranopia (green-blind)
#20232B
Tritanopia (blue-blind)
#450518
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40062c;
/* rgb */ color: rgb(64, 6, 44);
/* oklch */ color: oklch(25.4% 0.096 346.1);
Tailwind
colors: {
  custom: {
    50: '#784e65',
    500: '#40062c',
    950: '#000000',
  },
}
SCSS
$custom: #40062c;
$custom-light: #784e65;
$custom-dark: #000000;
JSON
{
  "hex": "#40062c",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 320.69,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25397,
    "c": 0.09638,
    "h": 346.1
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#40062C
secondary
#228042
accent
#F9742F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40062C

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

Preview Lab → · Contrast checker → · Palette generator →

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