#401226#401226

#401226 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.5% C 0.075 H 356.6°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#401226
RGBrgb(64, 18, 38)
HSLhsl(334, 56%, 16%)
HSVhsv(334, 72%, 25%)
CMYKcmyk(0%, 71.9%, 40.6%, 74.9%)
CIE-LABlab(13.61, 24.58, -1.84)
CIE-LCHlch(13.61, 24.65, 355.73°)
OKLaboklab(26.51% 0.0751 -0.0045)
OKLCHoklch(26.51% 0.075 356.6)
XYZxyz(2.6807, 1.6628, 2.0131)
Luminance0.0166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401226 #12402C
analogous
#40123D #401226 #401512
triadic
#401226 #264012 #122640
tetradic
#401226 #3D4012 #12402C #151240
square
#401226 #3D4012 #12402C #151240
split-complementary
#401226 #124015 #123D40
monochromatic
#18070E #18070E #401226 #701F42 #A02D5F

Accessibility & contrast

On white

15.76
#401226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#401226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401226
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401226#FFFFFF#000000##FFFFFF
##4012261.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1D27
Deuteranopia (green-blind)
#262625
Tritanopia (blue-blind)
#460E1A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401226;
/* rgb */ color: rgb(64, 18, 38);
/* oklch */ color: oklch(26.5% 0.075 356.6);
Tailwind
colors: {
  custom: {
    50: '#775360',
    500: '#401226',
    950: '#000000',
  },
}
SCSS
$custom: #401226;
$custom-light: #775360;
$custom-dark: #000000;
JSON
{
  "hex": "#401226",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 38
  },
  "hsl": {
    "h": 333.913,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26508,
    "c": 0.07521,
    "h": 356.6
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#401226
secondary
#35795B
accent
#DF9E48
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #401226

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

Preview Lab → · Contrast checker → · Palette generator →

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