#400727#400727

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

Color values

HEX#400727
RGBrgb(64, 7, 39)
HSLhsl(326, 80%, 14%)
HSVhsv(326, 89%, 25%)
CMYKcmyk(0%, 89.1%, 39.1%, 74.9%)
CIE-LABlab(11.88, 29.63, -5.15)
CIE-LCHlch(11.88, 30.08, 350.13°)
OKLaboklab(25.25% 0.0909 -0.0133)
OKLCHoklch(25.25% 0.092 351.7)
XYZxyz(2.5567, 1.3887, 2.0525)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400727 #074020
analogous
#3D0740 #400727 #40070B
triadic
#400727 #274007 #072740
tetradic
#400727 #403D07 #074020 #070B40
square
#400727 #403D07 #074020 #070B40
split-complementary
#400727 #0B4007 #07403D
monochromatic
#1C0311 #1C0311 #400727 #770D49 #AE136A

Accessibility & contrast

On white

16.44
#400727 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400727
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400727#FFFFFF#000000##FFFFFF
##4007271.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121928
Deuteranopia (green-blind)
#222326
Tritanopia (blue-blind)
#460316
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400727;
/* rgb */ color: rgb(64, 7, 39);
/* oklch */ color: oklch(25.3% 0.092 351.7);
Tailwind
colors: {
  custom: {
    50: '#784e61',
    500: '#400727',
    950: '#000000',
  },
}
SCSS
$custom: #400727;
$custom-light: #784e61;
$custom-dark: #000000;
JSON
{
  "hex": "#400727",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 39
  },
  "hsl": {
    "h": 326.316,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25254,
    "c": 0.09188,
    "h": 351.7
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#400727
secondary
#247F4C
accent
#F78831
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400727

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

Preview Lab → · Contrast checker → · Palette generator →

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