#400824#400824

#400824 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.089 H 355.3°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#400824
RGBrgb(64, 8, 36)
HSLhsl(330, 78%, 14%)
HSVhsv(330, 88%, 25%)
CMYKcmyk(0%, 87.5%, 43.8%, 74.9%)
CIE-LABlab(11.90, 28.83, -2.89)
CIE-LCHlch(11.90, 28.98, 354.28°)
OKLaboklab(25.22% 0.0886 -0.0072)
OKLCHoklch(25.22% 0.089 355.3)
XYZxyz(2.5198, 1.3913, 1.8046)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400824 #084024
analogous
#400840 #400824 #400808
triadic
#400824 #244008 #082440
tetradic
#400824 #404008 #084024 #080840
square
#400824 #404008 #084024 #080840
split-complementary
#400824 #084008 #084040
monochromatic
#1B030F #1B030F #400824 #760F43 #AD1661

Accessibility & contrast

On white

16.43
#400824 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400824 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400824
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400824#FFFFFF#000000##FFFFFF
##4008241.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131925
Deuteranopia (green-blind)
#232323
Tritanopia (blue-blind)
#460315
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400824;
/* rgb */ color: rgb(64, 8, 36);
/* oklch */ color: oklch(25.2% 0.089 355.3);
Tailwind
colors: {
  custom: {
    50: '#784e5e',
    500: '#400824',
    950: '#000000',
  },
}
SCSS
$custom: #400824;
$custom-light: #784e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#400824",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 36
  },
  "hsl": {
    "h": 330,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25224,
    "c": 0.08891,
    "h": 355.3
  },
  "luminance": 0.01391
}

Semantic roles & 50–950 ramp

primary
#400824
secondary
#257E52
accent
#F49434
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400824

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

Preview Lab → · Contrast checker → · Palette generator →

#400824 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva