#40122C#40122C

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

Color values

HEX#40122C
RGBrgb(64, 18, 44)
HSLhsl(326, 56%, 16%)
HSVhsv(326, 72%, 25%)
CMYKcmyk(0%, 71.9%, 31.2%, 74.9%)
CIE-LABlab(13.85, 25.47, -5.86)
CIE-LCHlch(13.85, 26.14, 347.05°)
OKLaboklab(26.77% 0.0772 -0.0153)
OKLCHoklch(26.77% 0.079 348.8)
XYZxyz(2.7854, 1.7047, 2.5647)
Luminance0.0170 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40122C #124026
analogous
#3D1240 #40122C #401215
triadic
#40122C #2C4012 #122C40
tetradic
#40122C #403D12 #124026 #121540
square
#40122C #403D12 #124026 #121540
split-complementary
#40122C #154012 #12403D
monochromatic
#180710 #180710 #40122C #701F4D #A02D6E

Accessibility & contrast

On white

15.66
#40122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40122C
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40122C#FFFFFF#000000##FFFFFF
##40122C1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181E2D
Deuteranopia (green-blind)
#25262B
Tritanopia (blue-blind)
#45101D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40122c;
/* rgb */ color: rgb(64, 18, 44);
/* oklch */ color: oklch(26.8% 0.079 348.8);
Tailwind
colors: {
  custom: {
    50: '#775365',
    500: '#40122c',
    950: '#000000',
  },
}
SCSS
$custom: #40122c;
$custom-light: #775365;
$custom-dark: #000000;
JSON
{
  "hex": "#40122c",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 326.087,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26772,
    "c": 0.07872,
    "h": 348.8
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#40122C
secondary
#357952
accent
#DF8A48
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40122C

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

Preview Lab → · Contrast checker → · Palette generator →

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