#400C28#400C28

#400C28 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.086 H 351.8°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#400C28
RGBrgb(64, 12, 40)
HSLhsl(328, 68%, 15%)
HSVhsv(328, 81%, 25%)
CMYKcmyk(0%, 81.2%, 37.5%, 74.9%)
CIE-LABlab(12.65, 27.73, -4.74)
CIE-LCHlch(12.65, 28.13, 350.30°)
OKLaboklab(25.83% 0.0848 -0.0122)
OKLCHoklch(25.83% 0.086 351.8)
XYZxyz(2.6290, 1.5064, 2.1594)
Luminance0.0151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C28 #0C4024
analogous
#3E0C40 #400C28 #400C0E
triadic
#400C28 #28400C #0C2840
tetradic
#400C28 #403E0C #0C4024 #0C0E40
square
#400C28 #403E0C #0C4024 #0C0E40
split-complementary
#400C28 #0E400C #0C403E
monochromatic
#1A0510 #1A0510 #400C28 #741648 #A71F68

Accessibility & contrast

On white

16.14
#400C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C28
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C28#FFFFFF#000000##FFFFFF
##400C281.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151B29
Deuteranopia (green-blind)
#232427
Tritanopia (blue-blind)
#450818
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c28;
/* rgb */ color: rgb(64, 12, 40);
/* oklch */ color: oklch(25.8% 0.086 351.8);
Tailwind
colors: {
  custom: {
    50: '#785061',
    500: '#400c28',
    950: '#000000',
  },
}
SCSS
$custom: #400c28;
$custom-light: #785061;
$custom-dark: #000000;
JSON
{
  "hex": "#400c28",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 327.692,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25828,
    "c": 0.08567,
    "h": 351.8
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#400C28
secondary
#2C7C51
accent
#EB8D3D
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400C28

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

Preview Lab → · Contrast checker → · Palette generator →

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