#400517#400517

#400517 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.4% C 0.088 H 9.3°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#400517
RGBrgb(64, 5, 23)
HSLhsl(342, 86%, 14%)
HSVhsv(342, 92%, 25%)
CMYKcmyk(0%, 92.2%, 64.1%, 74.9%)
CIE-LABlab(11.00, 28.74, 5.64)
CIE-LCHlch(11.00, 29.29, 11.10°)
OKLaboklab(24.42% 0.0873 0.0142)
OKLCHoklch(24.42% 0.088 9.3)
XYZxyz(2.3235, 1.2607, 0.9314)
Luminance0.0126 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400517 #05402E
analogous
#400534 #400517 #401005
triadic
#400517 #174005 #051740
tetradic
#400517 #344005 #05402E #100540
square
#400517 #344005 #05402E #100540
split-complementary
#400517 #054010 #053440
monochromatic
#1C020A #1C020A #400517 #79092B #B20E40

Accessibility & contrast

On white

16.77
#400517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#400517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400517
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400517#FFFFFF#000000##FFFFFF
##4005171.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151617
Deuteranopia (green-blind)
#252216
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400517;
/* rgb */ color: rgb(64, 5, 23);
/* oklch */ color: oklch(24.4% 0.088 9.3);
Tailwind
colors: {
  custom: {
    50: '#794c53',
    500: '#400517',
    950: '#000000',
  },
}
SCSS
$custom: #400517;
$custom-light: #794c53;
$custom-dark: #000000;
JSON
{
  "hex": "#400517",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 23
  },
  "hsl": {
    "h": 341.695,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24416,
    "c": 0.08849,
    "h": 9.3
  },
  "luminance": 0.0126
}

Semantic roles & 50–950 ramp

primary
#400517
secondary
#208163
accent
#FCBC2C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400517

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

Preview Lab → · Contrast checker → · Palette generator →

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