#400836#400836

#400836 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.2% C 0.101 H 336.6°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#400836
RGBrgb(64, 8, 54)
HSLhsl(311, 78%, 14%)
HSVhsv(311, 88%, 25%)
CMYKcmyk(0%, 87.5%, 15.6%, 74.9%)
CIE-LABlab(12.80, 31.51, -14.74)
CIE-LCHlch(12.80, 34.79, 334.94°)
OKLaboklab(26.17% 0.0927 -0.0402)
OKLCHoklch(26.17% 0.101 336.6)
XYZxyz(2.8671, 1.5303, 3.6337)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400836 #084012
analogous
#2E0840 #400836 #40081A
triadic
#400836 #364008 #083640
tetradic
#400836 #402E08 #084012 #081A40
square
#400836 #402E08 #084012 #081A40
split-complementary
#400836 #1A4008 #08402E
monochromatic
#1B0317 #1B0317 #400836 #760F64 #AD1692

Accessibility & contrast

On white

16.08
#400836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400836
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400836#FFFFFF#000000##FFFFFF
##4008361.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C37
Deuteranopia (green-blind)
#1D2435
Tritanopia (blue-blind)
#440C1E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400836;
/* rgb */ color: rgb(64, 8, 54);
/* oklch */ color: oklch(26.2% 0.101 336.6);
Tailwind
colors: {
  custom: {
    50: '#774f6d',
    500: '#400836',
    950: '#000000',
  },
}
SCSS
$custom: #400836;
$custom-light: #774f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#400836",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 310.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2617,
    "c": 0.10107,
    "h": 336.6
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#400836
secondary
#257E35
accent
#F45634
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400836

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

Preview Lab → · Contrast checker → · Palette generator →

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