#400C22#400C22

#400C22 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.6% C 0.083 H 359.1°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#400C22
RGBrgb(64, 12, 34)
HSLhsl(335, 68%, 15%)
HSVhsv(335, 81%, 25%)
CMYKcmyk(0%, 81.2%, 46.9%, 74.9%)
CIE-LABlab(12.41, 26.94, -0.64)
CIE-LCHlch(12.41, 26.94, 358.63°)
OKLaboklab(25.57% 0.0826 -0.0014)
OKLCHoklch(25.57% 0.083 359.1)
XYZxyz(2.5347, 1.4687, 1.6631)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C22 #0C402A
analogous
#400C3C #400C22 #40100C
triadic
#400C22 #22400C #0C2240
tetradic
#400C22 #3C400C #0C402A #100C40
square
#400C22 #3C400C #0C402A #100C40
split-complementary
#400C22 #0C4010 #0C3C40
monochromatic
#1A050E #1A050E #400C22 #74163D #A71F59

Accessibility & contrast

On white

16.23
#400C22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C22
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C22#FFFFFF#000000##FFFFFF
##400C221.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171A23
Deuteranopia (green-blind)
#252421
Tritanopia (blue-blind)
#460615
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c22;
/* rgb */ color: rgb(64, 12, 34);
/* oklch */ color: oklch(25.6% 0.083 359.1);
Tailwind
colors: {
  custom: {
    50: '#78505c',
    500: '#400c22',
    950: '#000000',
  },
}
SCSS
$custom: #400c22;
$custom-light: #78505c;
$custom-dark: #000000;
JSON
{
  "hex": "#400c22",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 34
  },
  "hsl": {
    "h": 334.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25572,
    "c": 0.08262,
    "h": 359.1
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#400C22
secondary
#2C7C5A
accent
#EBA13D
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C22

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

Preview Lab → · Contrast checker → · Palette generator →

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