#400736#400736

#400736 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 26.1% C 0.102 H 336.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#400736
RGBrgb(64, 7, 54)
HSLhsl(311, 80%, 14%)
HSVhsv(311, 89%, 25%)
CMYKcmyk(0%, 89.1%, 15.6%, 74.9%)
CIE-LABlab(12.66, 31.90, -14.95)
CIE-LCHlch(12.66, 35.23, 334.89°)
OKLaboklab(26.07% 0.0939 -0.0408)
OKLCHoklch(26.07% 0.102 336.5)
XYZxyz(2.8562, 1.5086, 3.6301)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400736 #074011
analogous
#2E0740 #400736 #40071A
triadic
#400736 #364007 #073640
tetradic
#400736 #402E07 #074011 #071A40
square
#400736 #402E07 #074011 #071A40
split-complementary
#400736 #1A4007 #07402E
monochromatic
#1C0317 #1C0317 #400736 #770D65 #AE1393

Accessibility & contrast

On white

16.13
#400736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400736 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400736
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400736#FFFFFF#000000##FFFFFF
##4007361.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081B37
Deuteranopia (green-blind)
#1D2435
Tritanopia (blue-blind)
#440B1E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400736;
/* rgb */ color: rgb(64, 7, 54);
/* oklch */ color: oklch(26.1% 0.102 336.5);
Tailwind
colors: {
  custom: {
    50: '#774f6d',
    500: '#400736',
    950: '#000000',
  },
}
SCSS
$custom: #400736;
$custom-light: #774f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#400736",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 310.526,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26072,
    "c": 0.10238,
    "h": 336.5
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#400736
secondary
#247F34
accent
#F75431
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400736

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

Preview Lab → · Contrast checker → · Palette generator →

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