#40062A#40062A

#40062A is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.3% C 0.095 H 348.2°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#40062A
RGBrgb(64, 6, 42)
HSLhsl(323, 83%, 14%)
HSVhsv(323, 91%, 25%)
CMYKcmyk(0%, 90.6%, 34.4%, 74.9%)
CIE-LABlab(11.88, 30.45, -7.39)
CIE-LCHlch(11.88, 31.34, 346.35°)
OKLaboklab(25.29% 0.0931 -0.0195)
OKLCHoklch(25.29% 0.095 348.2)
XYZxyz(2.5975, 1.3877, 2.3211)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40062A #06401C
analogous
#390640 #40062A #40060D
triadic
#40062A #2A4006 #062A40
tetradic
#40062A #403906 #06401C #060D40
square
#40062A #403906 #06401C #060D40
split-complementary
#40062A #0D4006 #064039
monochromatic
#1C0312 #1C0312 #40062A #780B4F #B01073

Accessibility & contrast

On white

16.44
#40062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40062A
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40062A#FFFFFF#000000##FFFFFF
##40062A1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#212329
Tritanopia (blue-blind)
#450417
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40062a;
/* rgb */ color: rgb(64, 6, 42);
/* oklch */ color: oklch(25.3% 0.095 348.2);
Tailwind
colors: {
  custom: {
    50: '#784e63',
    500: '#40062a',
    950: '#000000',
  },
}
SCSS
$custom: #40062a;
$custom-light: #784e63;
$custom-dark: #000000;
JSON
{
  "hex": "#40062a",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 322.759,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25294,
    "c": 0.09508,
    "h": 348.2
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#40062A
secondary
#228046
accent
#F97B2F
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40062A

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

Preview Lab → · Contrast checker → · Palette generator →

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