#CE42B2#CE42B2

#CE42B2 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.5% C 0.212 H 336.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CE42B2
RGBrgb(206, 66, 178)
HSLhsl(312, 59%, 53%)
HSVhsv(312, 68%, 81%)
CMYKcmyk(0%, 68%, 13.6%, 19.2%)
CIE-LABlab(52.10, 66.33, -30.61)
CIE-LCHlch(52.10, 73.05, 335.22°)
OKLaboklab(61.5% 0.1949 -0.0832)
OKLCHoklch(61.5% 0.212 336.9)
XYZxyz(35.4383, 20.2357, 44.1503)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B2 #42CE5E
analogous
#A442CE #CE42B2 #CE426C
triadic
#CE42B2 #B2CE42 #42B2CE
tetradic
#CE42B2 #CEA442 #42CE5E #426CCE
square
#CE42B2 #CEA442 #42CE5E #426CCE
split-complementary
#CE42B2 #6CCE42 #42CEA4
monochromatic
#771F65 #A72B8F #CE42B2 #DB73C6 #E7A3DA

Accessibility & contrast

On white

4.16
#CE42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CE42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B2#FFFFFF#000000##000000
##CE42B21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB5
Deuteranopia (green-blind)
#7384AF
Tritanopia (blue-blind)
#D94A74
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce42b2;
/* rgb */ color: rgb(206, 66, 178);
/* oklch */ color: oklch(61.5% 0.212 336.9);
Tailwind
colors: {
  custom: {
    50: '#e181c9',
    500: '#ce42b2',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b2;
$custom-light: #e181c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b2",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 312,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61497,
    "c": 0.2119,
    "h": 336.9
  },
  "luminance": 0.20233
}

Semantic roles & 50–950 ramp

primary
#CE42B2
secondary
#98D4A4
accent
#E26546
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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