#CE42B1#CE42B1

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

Color values

HEX#CE42B1
RGBrgb(206, 66, 177)
HSLhsl(312, 59%, 53%)
HSVhsv(312, 68%, 81%)
CMYKcmyk(0%, 68%, 14.1%, 19.2%)
CIE-LABlab(52.06, 66.18, -30.10)
CIE-LCHlch(52.06, 72.70, 335.54°)
OKLaboklab(61.45% 0.1948 -0.0817)
OKLCHoklch(61.45% 0.211 337.2)
XYZxyz(35.3382, 20.1957, 43.6235)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B1 #42CE5F
analogous
#A542CE #CE42B1 #CE426B
triadic
#CE42B1 #B1CE42 #42B1CE
tetradic
#CE42B1 #CEA542 #42CE5F #426BCE
square
#CE42B1 #CEA542 #42CE5F #426BCE
split-complementary
#CE42B1 #6BCE42 #42CEA5
monochromatic
#771F65 #A72B8E #CE42B1 #DB73C5 #E7A3D9

Accessibility & contrast

On white

4.17
#CE42B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CE42B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B1#FFFFFF#000000##000000
##CE42B11.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#466EB4
Deuteranopia (green-blind)
#7484AE
Tritanopia (blue-blind)
#D94974
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce42b1;
/* rgb */ color: rgb(206, 66, 177);
/* oklch */ color: oklch(61.5% 0.211 337.2);
Tailwind
colors: {
  custom: {
    50: '#e181c8',
    500: '#ce42b1',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b1;
$custom-light: #e181c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b1",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 312.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.6145,
    "c": 0.21121,
    "h": 337.2
  },
  "luminance": 0.20193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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