#40122D#40122D

#40122D is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.8% C 0.079 H 347.5°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#40122D
RGBrgb(64, 18, 45)
HSLhsl(325, 56%, 16%)
HSVhsv(325, 72%, 25%)
CMYKcmyk(0%, 71.9%, 29.7%, 74.9%)
CIE-LABlab(13.90, 25.63, -6.52)
CIE-LCHlch(13.90, 26.45, 345.73°)
OKLaboklab(26.82% 0.0775 -0.0171)
OKLCHoklch(26.82% 0.079 347.5)
XYZxyz(2.8044, 1.7123, 2.6649)
Luminance0.0171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122D #124025
analogous
#3C1240 #40122D #401216
triadic
#40122D #2D4012 #122D40
tetradic
#40122D #403C12 #124025 #121640
square
#40122D #403C12 #124025 #121640
split-complementary
#40122D #164012 #12403C
monochromatic
#180711 #180711 #40122D #701F4F #A02D70

Accessibility & contrast

On white

15.64
#40122D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40122D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40122D
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122D#FFFFFF#000000##FFFFFF
##40122D1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2E
Deuteranopia (green-blind)
#24262C
Tritanopia (blue-blind)
#45111D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40122d;
/* rgb */ color: rgb(64, 18, 45);
/* oklch */ color: oklch(26.8% 0.079 347.5);
Tailwind
colors: {
  custom: {
    50: '#775365',
    500: '#40122d',
    950: '#000000',
  },
}
SCSS
$custom: #40122d;
$custom-light: #775365;
$custom-dark: #000000;
JSON
{
  "hex": "#40122d",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 45
  },
  "hsl": {
    "h": 324.783,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26819,
    "c": 0.0794,
    "h": 347.5
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#40122D
secondary
#357951
accent
#DF8748
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40122D

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

Preview Lab → · Contrast checker → · Palette generator →

#40122D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva