#400827#400827

#400827 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.4% C 0.091 H 351.9°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#400827
RGBrgb(64, 8, 39)
HSLhsl(327, 78%, 14%)
HSVhsv(327, 88%, 25%)
CMYKcmyk(0%, 87.5%, 39.1%, 74.9%)
CIE-LABlab(12.03, 29.22, -4.94)
CIE-LCHlch(12.03, 29.64, 350.41°)
OKLaboklab(25.36% 0.0896 -0.0127)
OKLCHoklch(25.36% 0.091 351.9)
XYZxyz(2.5676, 1.4104, 2.0561)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400827 #084021
analogous
#3D0840 #400827 #40080B
triadic
#400827 #274008 #082740
tetradic
#400827 #403D08 #084021 #080B40
square
#400827 #403D08 #084021 #080B40
split-complementary
#400827 #0B4008 #08403D
monochromatic
#1B0311 #1B0311 #400827 #760F48 #AD1669

Accessibility & contrast

On white

16.38
#400827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400827
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400827#FFFFFF#000000##FFFFFF
##4008271.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121928
Deuteranopia (green-blind)
#222326
Tritanopia (blue-blind)
#460416
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400827;
/* rgb */ color: rgb(64, 8, 39);
/* oklch */ color: oklch(25.4% 0.091 351.9);
Tailwind
colors: {
  custom: {
    50: '#784e61',
    500: '#400827',
    950: '#000000',
  },
}
SCSS
$custom: #400827;
$custom-light: #784e61;
$custom-dark: #000000;
JSON
{
  "hex": "#400827",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 39
  },
  "hsl": {
    "h": 326.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25359,
    "c": 0.09051,
    "h": 351.9
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#400827
secondary
#257E4D
accent
#F48A34
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400827

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

Preview Lab → · Contrast checker → · Palette generator →

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