#400829#400829

#400829 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.092 H 349.7°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#400829
RGBrgb(64, 8, 41)
HSLhsl(325, 78%, 14%)
HSVhsv(325, 88%, 25%)
CMYKcmyk(0%, 87.5%, 35.9%, 74.9%)
CIE-LABlab(12.12, 29.49, -6.29)
CIE-LCHlch(12.12, 30.15, 347.97°)
OKLaboklab(25.45% 0.0902 -0.0164)
OKLCHoklch(25.45% 0.092 349.7)
XYZxyz(2.6016, 1.4241, 2.2353)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400829 #08401F
analogous
#3B0840 #400829 #40080D
triadic
#400829 #294008 #082940
tetradic
#400829 #403B08 #08401F #080D40
square
#400829 #403B08 #08401F #080D40
split-complementary
#400829 #0D4008 #08403B
monochromatic
#1B0311 #1B0311 #400829 #760F4C #AD166F

Accessibility & contrast

On white

16.34
#400829 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400829
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400829#FFFFFF#000000##FFFFFF
##4008291.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11192A
Deuteranopia (green-blind)
#222328
Tritanopia (blue-blind)
#450517
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400829;
/* rgb */ color: rgb(64, 8, 41);
/* oklch */ color: oklch(25.5% 0.092 349.7);
Tailwind
colors: {
  custom: {
    50: '#784e62',
    500: '#400829',
    950: '#000000',
  },
}
SCSS
$custom: #400829;
$custom-light: #784e62;
$custom-dark: #000000;
JSON
{
  "hex": "#400829",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 41
  },
  "hsl": {
    "h": 324.643,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25454,
    "c": 0.09169,
    "h": 349.7
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#400829
secondary
#257E4A
accent
#F48334
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400829

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

Preview Lab → · Contrast checker → · Palette generator →

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