#401227#401227

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

Color values

HEX#401227
RGBrgb(64, 18, 39)
HSLhsl(333, 56%, 16%)
HSVhsv(333, 72%, 25%)
CMYKcmyk(0%, 71.9%, 39.1%, 74.9%)
CIE-LABlab(13.65, 24.72, -2.51)
CIE-LCHlch(13.65, 24.84, 354.19°)
OKLaboklab(26.55% 0.0755 -0.0063)
OKLCHoklch(26.55% 0.076 355.2)
XYZxyz(2.6970, 1.6694, 2.0993)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401227 #12402B
analogous
#40123E #401227 #401412
triadic
#401227 #274012 #122740
tetradic
#401227 #3E4012 #12402B #141240
square
#401227 #3E4012 #12402B #141240
split-complementary
#401227 #124014 #123E40
monochromatic
#18070F #18070F #401227 #701F44 #A02D61

Accessibility & contrast

On white

15.74
#401227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401227
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401227#FFFFFF#000000##FFFFFF
##4012271.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191E28
Deuteranopia (green-blind)
#262626
Tritanopia (blue-blind)
#450F1A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #401227;
/* rgb */ color: rgb(64, 18, 39);
/* oklch */ color: oklch(26.6% 0.076 355.2);
Tailwind
colors: {
  custom: {
    50: '#775361',
    500: '#401227',
    950: '#000000',
  },
}
SCSS
$custom: #401227;
$custom-light: #775361;
$custom-dark: #000000;
JSON
{
  "hex": "#401227",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 332.609,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2655,
    "c": 0.07571,
    "h": 355.2
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#401227
secondary
#35795A
accent
#DF9A48
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090205
muted
#7B7879

Preview Lab

Preview with #401227

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

Preview Lab → · Contrast checker → · Palette generator →

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