#C242A7#C242A7

#C242A7 is a mid, vivid pink. Relative luminance 0.182; OKLCH L 59.2% C 0.197 H 337.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#C242A7
RGBrgb(194, 66, 167)
HSLhsl(313, 51%, 51%)
HSVhsv(313, 66%, 76%)
CMYKcmyk(0%, 66%, 13.9%, 23.9%)
CIE-LABlab(49.69, 61.67, -28.07)
CIE-LCHlch(49.69, 67.76, 335.53°)
OKLaboklab(59.21% 0.1813 -0.0761)
OKLCHoklch(59.21% 0.197 337.2)
XYZxyz(31.1719, 18.1585, 38.4149)
Luminance0.1816 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242A7 #42C25D
analogous
#9D42C2 #C242A7 #C24267
triadic
#C242A7 #A7C242 #42A7C2
tetradic
#C242A7 #C29D42 #42C25D #4267C2
square
#C242A7 #C29D42 #42C25D #4267C2
split-complementary
#C242A7 #67C242 #42C29D
monochromatic
#682259 #963181 #C242A7 #D170BD #E09FD2

Accessibility & contrast

On white

4.53
#C242A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#C242A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242A7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242A7#FFFFFF#000000##000000
##C242A71.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#456AAA
Deuteranopia (green-blind)
#6E7DA4
Tritanopia (blue-blind)
#CC486F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c242a7;
/* rgb */ color: rgb(194, 66, 167);
/* oklch */ color: oklch(59.2% 0.197 337.2);
Tailwind
colors: {
  custom: {
    50: '#d880c1',
    500: '#c242a7',
    950: '#000000',
  },
}
SCSS
$custom: #c242a7;
$custom-light: #d880c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c242a7",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 312.656,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59208,
    "c": 0.19664,
    "h": 337.2
  },
  "luminance": 0.18156
}

Semantic roles & 50–950 ramp

primary
#C242A7
secondary
#94CCA0
accent
#DB6B4D
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C242A7

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

Preview Lab → · Contrast checker → · Palette generator →

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