#400C20#400C20

#400C20 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.5% C 0.082 H 1.6°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#400C20
RGBrgb(64, 12, 32)
HSLhsl(337, 68%, 15%)
HSVhsv(337, 81%, 25%)
CMYKcmyk(0%, 81.2%, 50%, 74.9%)
CIE-LABlab(12.34, 26.70, 0.74)
CIE-LCHlch(12.34, 26.71, 1.60°)
OKLaboklab(25.5% 0.0818 0.0022)
OKLCHoklch(25.5% 0.082 1.6)
XYZxyz(2.5067, 1.4575, 1.5155)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C20 #0C402C
analogous
#400C3A #400C20 #40120C
triadic
#400C20 #20400C #0C2040
tetradic
#400C20 #3A400C #0C402C #120C40
square
#400C20 #3A400C #0C402C #120C40
split-complementary
#400C20 #0C4012 #0C3A40
monochromatic
#1A050D #1A050D #400C20 #74163A #A71F54

Accessibility & contrast

On white

16.26
#400C20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400C20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C20
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C20#FFFFFF#000000##FFFFFF
##400C201.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171A20
Deuteranopia (green-blind)
#25241F
Tritanopia (blue-blind)
#460514
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c20;
/* rgb */ color: rgb(64, 12, 32);
/* oklch */ color: oklch(25.5% 0.082 1.6);
Tailwind
colors: {
  custom: {
    50: '#78505b',
    500: '#400c20',
    950: '#000000',
  },
}
SCSS
$custom: #400c20;
$custom-light: #78505b;
$custom-dark: #000000;
JSON
{
  "hex": "#400c20",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 32
  },
  "hsl": {
    "h": 336.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25495,
    "c": 0.08182,
    "h": 1.6
  },
  "luminance": 0.01457
}

Semantic roles & 50–950 ramp

primary
#400C20
secondary
#2C7C5D
accent
#EBA83D
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C20

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

Preview Lab → · Contrast checker → · Palette generator →

#400C20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva