#40102A#40102A

#40102A is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.4% C 0.081 H 350.6°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#40102A
RGBrgb(64, 16, 42)
HSLhsl(328, 60%, 16%)
HSVhsv(328, 75%, 25%)
CMYKcmyk(0%, 75%, 34.4%, 74.9%)
CIE-LABlab(13.40, 26.17, -5.08)
CIE-LCHlch(13.40, 26.66, 349.01°)
OKLaboklab(26.41% 0.0797 -0.0132)
OKLCHoklch(26.41% 0.081 350.6)
XYZxyz(2.7177, 1.6280, 2.3612)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40102A #104026
analogous
#3E1040 #40102A #401012
triadic
#40102A #2A4010 #102A40
tetradic
#40102A #403E10 #104026 #101240
square
#40102A #403E10 #104026 #101240
split-complementary
#40102A #124010 #10403E
monochromatic
#180610 #180610 #40102A #711C4A #A2286A

Accessibility & contrast

On white

15.84
#40102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40102A
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40102A#FFFFFF#000000##FFFFFF
##40102A1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171D2B
Deuteranopia (green-blind)
#242629
Tritanopia (blue-blind)
#450E1B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40102a;
/* rgb */ color: rgb(64, 16, 42);
/* oklch */ color: oklch(26.4% 0.081 350.6);
Tailwind
colors: {
  custom: {
    50: '#775263',
    500: '#40102a',
    950: '#000000',
  },
}
SCSS
$custom: #40102a;
$custom-light: #775263;
$custom-dark: #000000;
JSON
{
  "hex": "#40102a",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 327.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26408,
    "c": 0.08077,
    "h": 350.6
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#40102A
secondary
#327A53
accent
#E38D45
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40102A

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

Preview Lab → · Contrast checker → · Palette generator →

#40102A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva