#42172F#42172F

#42172F is a dark, moderate pink. Relative luminance 0.020; OKLCH L 28.0% C 0.074 H 348.3°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#42172F
RGBrgb(66, 23, 47)
HSLhsl(327, 48%, 17%)
HSVhsv(327, 65%, 26%)
CMYKcmyk(0%, 65.2%, 28.8%, 74.1%)
CIE-LABlab(15.36, 23.98, -5.71)
CIE-LCHlch(15.36, 24.65, 346.60°)
OKLaboklab(28.01% 0.0724 -0.015)
OKLCHoklch(28.01% 0.074 348.3)
XYZxyz(3.0664, 1.9766, 2.9088)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42172F #17422A
analogous
#401742 #42172F #421719
triadic
#42172F #2F4217 #172F42
tetradic
#42172F #424017 #17422A #171942
square
#42172F #424017 #17422A #171942
split-complementary
#42172F #194217 #174240
monochromatic
#170810 #170810 #42172F #6F274F #9D3770

Accessibility & contrast

On white

15.05
#42172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#42172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42172F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42172F#FFFFFF#000000##FFFFFF
##42172F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2230
Deuteranopia (green-blind)
#28292E
Tritanopia (blue-blind)
#471620
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #42172f;
/* rgb */ color: rgb(66, 23, 47);
/* oklch */ color: oklch(28.0% 0.074 348.3);
Tailwind
colors: {
  custom: {
    50: '#785667',
    500: '#42172f',
    950: '#000000',
  },
}
SCSS
$custom: #42172f;
$custom-light: #785667;
$custom-dark: #000000;
JSON
{
  "hex": "#42172f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 326.512,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28006,
    "c": 0.07391,
    "h": 348.3
  },
  "luminance": 0.01976
}

Semantic roles & 50–950 ramp

primary
#42172F
secondary
#3C7957
accent
#D88C50
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #42172F

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

Preview Lab → · Contrast checker → · Palette generator →

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