#400635#400635

#400635 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.103 H 337.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#400635
RGBrgb(64, 6, 53)
HSLhsl(311, 83%, 14%)
HSVhsv(311, 91%, 25%)
CMYKcmyk(0%, 90.6%, 17.2%, 74.9%)
CIE-LABlab(12.46, 32.13, -14.54)
CIE-LCHlch(12.46, 35.27, 335.66°)
OKLaboklab(25.91% 0.095 -0.0396)
OKLCHoklch(25.91% 0.103 337.4)
XYZxyz(2.8221, 1.4776, 3.5040)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400635 #064011
analogous
#2E0640 #400635 #400618
triadic
#400635 #354006 #063540
tetradic
#400635 #402E06 #064011 #061840
square
#400635 #402E06 #064011 #061840
split-complementary
#400635 #184006 #06402E
monochromatic
#1C0317 #1C0317 #400635 #780B63 #B01092

Accessibility & contrast

On white

16.21
#400635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400635
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400635#FFFFFF#000000##FFFFFF
##4006351.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081B36
Deuteranopia (green-blind)
#1D2434
Tritanopia (blue-blind)
#440A1D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400635;
/* rgb */ color: rgb(64, 6, 53);
/* oklch */ color: oklch(25.9% 0.103 337.4);
Tailwind
colors: {
  custom: {
    50: '#774e6c',
    500: '#400635',
    950: '#000000',
  },
}
SCSS
$custom: #400635;
$custom-light: #774e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#400635",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 311.379,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.10293,
    "h": 337.4
  },
  "luminance": 0.01477
}

Semantic roles & 50–950 ramp

primary
#400635
secondary
#228034
accent
#F9552F
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400635

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

Preview Lab → · Contrast checker → · Palette generator →

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