#400626#400626

#400626 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.1% C 0.093 H 352.5°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#400626
RGBrgb(64, 6, 38)
HSLhsl(327, 83%, 14%)
HSVhsv(327, 91%, 25%)
CMYKcmyk(0%, 90.6%, 40.6%, 74.9%)
CIE-LABlab(11.69, 29.92, -4.69)
CIE-LCHlch(11.69, 30.28, 351.08°)
OKLaboklab(25.1% 0.0919 -0.0121)
OKLCHoklch(25.1% 0.093 352.5)
XYZxyz(2.5295, 1.3605, 1.9627)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400626 #064020
analogous
#3D0640 #400626 #400609
triadic
#400626 #264006 #062640
tetradic
#400626 #403D06 #064020 #060940
square
#400626 #403D06 #064020 #060940
split-complementary
#400626 #094006 #06403D
monochromatic
#1C0311 #1C0311 #400626 #780B47 #B01068

Accessibility & contrast

On white

16.51
#400626 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400626 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400626
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400626#FFFFFF#000000##FFFFFF
##4006261.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111827
Deuteranopia (green-blind)
#222325
Tritanopia (blue-blind)
#460215
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400626;
/* rgb */ color: rgb(64, 6, 38);
/* oklch */ color: oklch(25.1% 0.093 352.5);
Tailwind
colors: {
  custom: {
    50: '#784d60',
    500: '#400626',
    950: '#000000',
  },
}
SCSS
$custom: #400626;
$custom-light: #784d60;
$custom-dark: #000000;
JSON
{
  "hex": "#400626",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 38
  },
  "hsl": {
    "h": 326.897,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25101,
    "c": 0.09272,
    "h": 352.5
  },
  "luminance": 0.0136
}

Semantic roles & 50–950 ramp

primary
#400626
secondary
#22804C
accent
#F9892F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400626

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

Preview Lab → · Contrast checker → · Palette generator →

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