#42172E#42172E

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

Color values

HEX#42172E
RGBrgb(66, 23, 46)
HSLhsl(328, 48%, 17%)
HSVhsv(328, 65%, 26%)
CMYKcmyk(0%, 65.2%, 30.3%, 74.1%)
CIE-LABlab(15.32, 23.82, -5.06)
CIE-LCHlch(15.32, 24.35, 348.01°)
OKLaboklab(27.96% 0.072 -0.0132)
OKLCHoklch(27.96% 0.073 349.6)
XYZxyz(3.0464, 1.9686, 2.8038)
Luminance0.0197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42172E #17422B
analogous
#411742 #42172E #421718
triadic
#42172E #2E4217 #172E42
tetradic
#42172E #424117 #17422B #171842
square
#42172E #424117 #17422B #171842
split-complementary
#42172E #184217 #174241
monochromatic
#170810 #170810 #42172E #6F274E #9D376D

Accessibility & contrast

On white

15.07
#42172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42172E
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42172E#FFFFFF#000000##FFFFFF
##42172E1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C222F
Deuteranopia (green-blind)
#28292D
Tritanopia (blue-blind)
#471520
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #42172e;
/* rgb */ color: rgb(66, 23, 46);
/* oklch */ color: oklch(28.0% 0.073 349.6);
Tailwind
colors: {
  custom: {
    50: '#785666',
    500: '#42172e',
    950: '#000000',
  },
}
SCSS
$custom: #42172e;
$custom-light: #785666;
$custom-dark: #000000;
JSON
{
  "hex": "#42172e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 327.907,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2796,
    "c": 0.07323,
    "h": 349.6
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#42172E
secondary
#3C7958
accent
#D88F50
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #42172E

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

Preview Lab → · Contrast checker → · Palette generator →

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