#401228#401228

#401228 is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.6% C 0.076 H 353.9°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#401228
RGBrgb(64, 18, 40)
HSLhsl(331, 56%, 16%)
HSVhsv(331, 72%, 25%)
CMYKcmyk(0%, 71.9%, 37.5%, 74.9%)
CIE-LABlab(13.69, 24.86, -3.19)
CIE-LCHlch(13.69, 25.07, 352.69°)
OKLaboklab(26.59% 0.0758 -0.0081)
OKLCHoklch(26.59% 0.076 353.9)
XYZxyz(2.7138, 1.6761, 2.1877)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401228 #12402A
analogous
#40123F #401228 #401312
triadic
#401228 #284012 #122840
tetradic
#401228 #3F4012 #12402A #131240
square
#401228 #3F4012 #12402A #131240
split-complementary
#401228 #124013 #123F40
monochromatic
#18070F #18070F #401228 #701F46 #A02D64

Accessibility & contrast

On white

15.73
#401228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#401228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401228
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401228#FFFFFF#000000##FFFFFF
##4012281.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191E29
Deuteranopia (green-blind)
#262627
Tritanopia (blue-blind)
#450F1B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401228;
/* rgb */ color: rgb(64, 18, 40);
/* oklch */ color: oklch(26.6% 0.076 353.9);
Tailwind
colors: {
  custom: {
    50: '#775361',
    500: '#401228',
    950: '#000000',
  },
}
SCSS
$custom: #401228;
$custom-light: #775361;
$custom-dark: #000000;
JSON
{
  "hex": "#401228",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 331.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26592,
    "c": 0.07626,
    "h": 353.9
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#401228
secondary
#357958
accent
#DF9748
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #401228

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

Preview Lab → · Contrast checker → · Palette generator →

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