#40082A#40082A

#40082A is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.5% C 0.092 H 348.6°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#40082A
RGBrgb(64, 8, 42)
HSLhsl(324, 78%, 14%)
HSVhsv(324, 88%, 25%)
CMYKcmyk(0%, 87.5%, 34.4%, 74.9%)
CIE-LABlab(12.16, 29.63, -6.96)
CIE-LCHlch(12.16, 30.44, 346.79°)
OKLaboklab(25.5% 0.0905 -0.0183)
OKLCHoklch(25.5% 0.092 348.6)
XYZxyz(2.6192, 1.4311, 2.3283)
Luminance0.0143 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40082A #08401E
analogous
#3A0840 #40082A #40080E
triadic
#40082A #2A4008 #082A40
tetradic
#40082A #403A08 #08401E #080E40
square
#40082A #403A08 #08401E #080E40
split-complementary
#40082A #0E4008 #08403A
monochromatic
#1B0312 #1B0312 #40082A #760F4E #AD1671

Accessibility & contrast

On white

16.33
#40082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#40082A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40082A
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40082A#FFFFFF#000000##FFFFFF
##40082A1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2B
Deuteranopia (green-blind)
#222329
Tritanopia (blue-blind)
#450518
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40082a;
/* rgb */ color: rgb(64, 8, 42);
/* oklch */ color: oklch(25.5% 0.092 348.6);
Tailwind
colors: {
  custom: {
    50: '#784e63',
    500: '#40082a',
    950: '#000000',
  },
}
SCSS
$custom: #40082a;
$custom-light: #784e63;
$custom-dark: #000000;
JSON
{
  "hex": "#40082a",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 323.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25503,
    "c": 0.09232,
    "h": 348.6
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#40082A
secondary
#257E48
accent
#F47F34
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40082A

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

Preview Lab → · Contrast checker → · Palette generator →

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