#42172B#42172B

#42172B is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.8% C 0.071 H 353.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#42172B
RGBrgb(66, 23, 43)
HSLhsl(332, 48%, 17%)
HSVhsv(332, 65%, 26%)
CMYKcmyk(0%, 65.2%, 34.8%, 74.1%)
CIE-LABlab(15.20, 23.34, -3.08)
CIE-LCHlch(15.20, 23.54, 352.49°)
OKLaboklab(27.83% 0.0709 -0.0078)
OKLCHoklch(27.83% 0.071 353.7)
XYZxyz(2.9893, 1.9458, 2.5032)
Luminance0.0194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42172B #17422E
analogous
#421741 #42172B #421817
triadic
#42172B #2B4217 #172B42
tetradic
#42172B #414217 #17422E #181742
square
#42172B #414217 #17422E #181742
split-complementary
#42172B #174218 #174142
monochromatic
#17080F #17080F #42172B #6F2749 #9D3766

Accessibility & contrast

On white

15.12
#42172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#42172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42172B
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42172B#FFFFFF#000000##FFFFFF
##42172B1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212C
Deuteranopia (green-blind)
#29292A
Tritanopia (blue-blind)
#47151F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #42172b;
/* rgb */ color: rgb(66, 23, 43);
/* oklch */ color: oklch(27.8% 0.071 353.7);
Tailwind
colors: {
  custom: {
    50: '#785664',
    500: '#42172b',
    950: '#000000',
  },
}
SCSS
$custom: #42172b;
$custom-light: #785664;
$custom-dark: #000000;
JSON
{
  "hex": "#42172b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 332.093,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2783,
    "c": 0.07137,
    "h": 353.7
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#42172B
secondary
#3C795D
accent
#D89950
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #42172B

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

Preview Lab → · Contrast checker → · Palette generator →

#42172B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva