#CE42A7#CE42A7

#CE42A7 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.0% C 0.205 H 340.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CE42A7
RGBrgb(206, 66, 167)
HSLhsl(317, 59%, 53%)
HSVhsv(317, 68%, 81%)
CMYKcmyk(0%, 68%, 18.9%, 19.2%)
CIE-LABlab(51.62, 64.77, -24.91)
CIE-LCHlch(51.62, 69.39, 338.96°)
OKLaboklab(60.99% 0.1932 -0.067)
OKLCHoklch(60.99% 0.205 340.9)
XYZxyz(34.3778, 19.8115, 38.5652)
Luminance0.1981 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42A7 #42CE69
analogous
#AF42CE #CE42A7 #CE4261
triadic
#CE42A7 #A7CE42 #42A7CE
tetradic
#CE42A7 #CEAF42 #42CE69 #4261CE
square
#CE42A7 #CEAF42 #42CE69 #4261CE
split-complementary
#CE42A7 #61CE42 #42CEAF
monochromatic
#771F5E #A72B85 #CE42A7 #DB73BE #E7A3D4

Accessibility & contrast

On white

4.23
#CE42A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CE42A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42A7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42A7#FFFFFF#000000##000000
##CE42A71.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAA
Deuteranopia (green-blind)
#7783A4
Tritanopia (blue-blind)
#DA456F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ce42a7;
/* rgb */ color: rgb(206, 66, 167);
/* oklch */ color: oklch(61.0% 0.205 340.9);
Tailwind
colors: {
  custom: {
    50: '#e181c1',
    500: '#ce42a7',
    950: '#000000',
  },
}
SCSS
$custom: #ce42a7;
$custom-light: #e181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42a7",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 316.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60992,
    "c": 0.20453,
    "h": 340.9
  },
  "luminance": 0.19808
}

Semantic roles & 50–950 ramp

primary
#CE42A7
secondary
#98D4A9
accent
#E27146
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CE42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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