#401236#401236

#401236 is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.3% C 0.087 H 337.3°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#401236
RGBrgb(64, 18, 54)
HSLhsl(313, 56%, 16%)
HSVhsv(313, 72%, 25%)
CMYKcmyk(0%, 71.9%, 15.6%, 74.9%)
CIE-LABlab(14.34, 27.18, -12.34)
CIE-LCHlch(14.34, 29.85, 335.59°)
OKLaboklab(27.29% 0.0798 -0.0334)
OKLCHoklch(27.29% 0.087 337.3)
XYZxyz(2.9966, 1.7892, 3.6768)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401236 #12401C
analogous
#331240 #401236 #40121F
triadic
#401236 #364012 #123640
tetradic
#401236 #403312 #12401C #121F40
square
#401236 #403312 #12401C #121F40
split-complementary
#401236 #1F4012 #124033
monochromatic
#180714 #180714 #401236 #701F5E #A02D87

Accessibility & contrast

On white

15.47
#401236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#401236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401236
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401236#FFFFFF#000000##FFFFFF
##4012361.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132037
Deuteranopia (green-blind)
#222735
Tritanopia (blue-blind)
#441422
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #401236;
/* rgb */ color: rgb(64, 18, 54);
/* oklch */ color: oklch(27.3% 0.087 337.3);
Tailwind
colors: {
  custom: {
    50: '#77546d',
    500: '#401236',
    950: '#000000',
  },
}
SCSS
$custom: #401236;
$custom-light: #77546d;
$custom-dark: #000000;
JSON
{
  "hex": "#401236",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 313.043,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27287,
    "c": 0.08654,
    "h": 337.3
  },
  "luminance": 0.01789
}

Semantic roles & 50–950 ramp

primary
#401236
secondary
#357944
accent
#DF6948
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090307
muted
#7B787A

Preview Lab

Preview with #401236

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

Preview Lab → · Contrast checker → · Palette generator →

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