#C04271#C04271

#C04271 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.8% C 0.166 H 0.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#C04271
RGBrgb(192, 66, 113)
HSLhsl(338, 50%, 51%)
HSVhsv(338, 66%, 75%)
CMYKcmyk(0%, 65.6%, 41.1%, 24.7%)
CIE-LABlab(47.36, 54.22, 0.80)
CIE-LCHlch(47.36, 54.22, 0.84°)
OKLaboklab(56.78% 0.1658 0.0027)
OKLCHoklch(56.78% 0.166 0.9)
XYZxyz(26.6689, 16.2983, 17.3611)
Luminance0.1630 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C04271 #42C091
analogous
#C042B0 #C04271 #C05242
triadic
#C04271 #71C042 #4271C0
tetradic
#C04271 #B0C042 #42C091 #5242C0
square
#C04271 #B0C042 #42C091 #5242C0
split-complementary
#C04271 #42C052 #42B0C0
monochromatic
#66223B #943156 #C04271 #CF7093 #DF9EB6

Accessibility & contrast

On white

4.93
#C04271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#C04271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C04271
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C04271#FFFFFF#000000##FFFFFF
##C042711.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6172
Deuteranopia (green-blind)
#7C796E
Tritanopia (blue-blind)
#D03455
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c04271;
/* rgb */ color: rgb(192, 66, 113);
/* oklch */ color: oklch(56.8% 0.166 0.9);
Tailwind
colors: {
  custom: {
    50: '#d87e99',
    500: '#c04271',
    950: '#000000',
  },
}
SCSS
$custom: #c04271;
$custom-light: #d87e99;
$custom-dark: #000000;
JSON
{
  "hex": "#c04271",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 337.619,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56783,
    "c": 0.16584,
    "h": 0.9
  },
  "luminance": 0.16295
}

Semantic roles & 50–950 ramp

primary
#C04271
secondary
#93CBB6
accent
#DAA64E
background
#FDF8F9
surface
#FBEFF2
border
#D4CACC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #C04271

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

Preview Lab → · Contrast checker → · Palette generator →

#C04271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva