#C042A7#C042A7

#C042A7 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.195 H 336.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C042A7
RGBrgb(192, 66, 167)
HSLhsl(312, 50%, 51%)
HSVhsv(312, 66%, 75%)
CMYKcmyk(0%, 65.6%, 13%, 24.7%)
CIE-LABlab(49.37, 61.15, -28.59)
CIE-LCHlch(49.37, 67.51, 334.95°)
OKLaboklab(58.91% 0.1793 -0.0776)
OKLCHoklch(58.91% 0.195 336.6)
XYZxyz(30.6619, 17.8955, 38.3910)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A7 #42C05B
analogous
#9A42C0 #C042A7 #C04268
triadic
#C042A7 #A7C042 #42A7C0
tetradic
#C042A7 #C09A42 #42C05B #4268C0
square
#C042A7 #C09A42 #42C05B #4268C0
split-complementary
#C042A7 #68C042 #42C09A
monochromatic
#662258 #943180 #C042A7 #CF70BC #DF9ED2

Accessibility & contrast

On white

4.59
#C042A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C042A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C042A7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A7#FFFFFF#000000##FFFFFF
##C042A71.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4469AA
Deuteranopia (green-blind)
#6D7CA4
Tritanopia (blue-blind)
#CA496F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a7;
/* rgb */ color: rgb(192, 66, 167);
/* oklch */ color: oklch(58.9% 0.195 336.6);
Tailwind
colors: {
  custom: {
    50: '#d67fc1',
    500: '#c042a7',
    950: '#000000',
  },
}
SCSS
$custom: #c042a7;
$custom-light: #d67fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a7",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 311.905,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58914,
    "c": 0.19536,
    "h": 336.6
  },
  "luminance": 0.17893
}

Semantic roles & 50–950 ramp

primary
#C042A7
secondary
#93CB9E
accent
#DA6A4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042A7

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

Preview Lab → · Contrast checker → · Palette generator →

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