#C54271#C54271

#C54271 is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.6% C 0.171 H 2.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C54271
RGBrgb(197, 66, 113)
HSLhsl(338, 53%, 52%)
HSVhsv(338, 66%, 77%)
CMYKcmyk(0%, 66.5%, 42.6%, 22.7%)
CIE-LABlab(48.21, 55.74, 2.13)
CIE-LCHlch(48.21, 55.78, 2.19°)
OKLaboklab(57.57% 0.1705 0.0062)
OKLCHoklch(57.57% 0.171 2.1)
XYZxyz(27.9568, 16.9624, 17.4214)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C54271 #42C596
analogous
#C542B3 #C54271 #C55542
triadic
#C54271 #71C542 #4271C5
tetradic
#C54271 #B3C542 #42C596 #5542C5
square
#C54271 #B3C542 #42C596 #5542C5
split-complementary
#C54271 #42C555 #42B3C5
monochromatic
#6C213C #9A2F56 #C54271 #D37194 #E2A0B7

Accessibility & contrast

On white

4.78
#C54271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#C54271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C54271
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C54271#FFFFFF#000000##FFFFFF
##C542711.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6272
Deuteranopia (green-blind)
#807C6E
Tritanopia (blue-blind)
#D53255
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c54271;
/* rgb */ color: rgb(197, 66, 113);
/* oklch */ color: oklch(57.6% 0.171 2.1);
Tailwind
colors: {
  custom: {
    50: '#db7f99',
    500: '#c54271',
    950: '#000000',
  },
}
SCSS
$custom: #c54271;
$custom-light: #db7f99;
$custom-dark: #000000;
JSON
{
  "hex": "#c54271",
  "rgb": {
    "r": 197,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 338.473,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57574,
    "c": 0.17058,
    "h": 2.1
  },
  "luminance": 0.16959
}

Semantic roles & 50–950 ramp

primary
#C54271
secondary
#95CEBA
accent
#DCA84B
background
#FEF8F9
surface
#FCEFF2
border
#D5CACC
text
#160B0D
muted
#847C7E

Preview Lab

Preview with #C54271

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

Preview Lab → · Contrast checker → · Palette generator →

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