#400628#400628

#400628 is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.094 H 350.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#400628
RGBrgb(64, 6, 40)
HSLhsl(325, 83%, 14%)
HSVhsv(325, 91%, 25%)
CMYKcmyk(0%, 90.6%, 37.5%, 74.9%)
CIE-LABlab(11.78, 30.18, -6.05)
CIE-LCHlch(11.78, 30.78, 348.66°)
OKLaboklab(25.2% 0.0925 -0.0158)
OKLCHoklch(25.2% 0.094 350.3)
XYZxyz(2.5626, 1.3738, 2.1373)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400628 #06401E
analogous
#3B0640 #400628 #40060B
triadic
#400628 #284006 #062840
tetradic
#400628 #403B06 #06401E #060B40
square
#400628 #403B06 #06401E #060B40
split-complementary
#400628 #0B4006 #06403B
monochromatic
#1C0311 #1C0311 #400628 #780B4B #B0106E

Accessibility & contrast

On white

16.48
#400628 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400628
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400628#FFFFFF#000000##FFFFFF
##4006281.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400628;
/* rgb */ color: rgb(64, 6, 40);
/* oklch */ color: oklch(25.2% 0.094 350.3);
Tailwind
colors: {
  custom: {
    50: '#784d61',
    500: '#400628',
    950: '#000000',
  },
}
SCSS
$custom: #400628;
$custom-light: #784d61;
$custom-dark: #000000;
JSON
{
  "hex": "#400628",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 40
  },
  "hsl": {
    "h": 324.828,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25195,
    "c": 0.09386,
    "h": 350.3
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#400628
secondary
#228049
accent
#F9822F
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #400628

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

Preview Lab → · Contrast checker → · Palette generator →

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