#400C25#400C25

#400C25 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.084 H 355.4°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#400C25
RGBrgb(64, 12, 37)
HSLhsl(331, 68%, 15%)
HSVhsv(331, 81%, 25%)
CMYKcmyk(0%, 81.2%, 42.2%, 74.9%)
CIE-LABlab(12.52, 27.32, -2.71)
CIE-LCHlch(12.52, 27.45, 354.34°)
OKLaboklab(25.7% 0.0838 -0.0068)
OKLCHoklch(25.7% 0.084 355.4)
XYZxyz(2.5799, 1.4868, 1.9010)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C25 #0C4027
analogous
#400C3F #400C25 #400D0C
triadic
#400C25 #25400C #0C2540
tetradic
#400C25 #3F400C #0C4027 #0D0C40
square
#400C25 #3F400C #0C4027 #0D0C40
split-complementary
#400C25 #0C400D #0C3F40
monochromatic
#1A050F #1A050F #400C25 #741643 #A71F61

Accessibility & contrast

On white

16.19
#400C25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400C25 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C25
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C25#FFFFFF#000000##FFFFFF
##400C251.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161A26
Deuteranopia (green-blind)
#242424
Tritanopia (blue-blind)
#460717
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c25;
/* rgb */ color: rgb(64, 12, 37);
/* oklch */ color: oklch(25.7% 0.084 355.4);
Tailwind
colors: {
  custom: {
    50: '#78505f',
    500: '#400c25',
    950: '#000000',
  },
}
SCSS
$custom: #400c25;
$custom-light: #78505f;
$custom-dark: #000000;
JSON
{
  "hex": "#400c25",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 37
  },
  "hsl": {
    "h": 331.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25695,
    "c": 0.08402,
    "h": 355.4
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#400C25
secondary
#2C7C55
accent
#EB973D
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C25

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

Preview Lab → · Contrast checker → · Palette generator →

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