#CE42B3#CE42B3

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

Color values

HEX#CE42B3
RGBrgb(206, 66, 179)
HSLhsl(312, 59%, 53%)
HSVhsv(312, 68%, 81%)
CMYKcmyk(0%, 68%, 13.1%, 19.2%)
CIE-LABlab(52.15, 66.47, -31.13)
CIE-LCHlch(52.15, 73.40, 334.91°)
OKLaboklab(61.55% 0.195 -0.0846)
OKLCHoklch(61.55% 0.213 336.5)
XYZxyz(35.5390, 20.2760, 44.6810)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B3 #42CE5D
analogous
#A342CE #CE42B3 #CE426D
triadic
#CE42B3 #B3CE42 #42B3CE
tetradic
#CE42B3 #CEA342 #42CE5D #426DCE
square
#CE42B3 #CEA342 #42CE5D #426DCE
split-complementary
#CE42B3 #6DCE42 #42CEA3
monochromatic
#771F66 #A72B8F #CE42B3 #DB73C7 #E7A3DA

Accessibility & contrast

On white

4.15
#CE42B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CE42B3#FFFFFF#000000##000000
##CE42B31.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB6
Deuteranopia (green-blind)
#7384B0
Tritanopia (blue-blind)
#D84A75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce42b3;
/* rgb */ color: rgb(206, 66, 179);
/* oklch */ color: oklch(61.5% 0.213 336.5);
Tailwind
colors: {
  custom: {
    50: '#e181ca',
    500: '#ce42b3',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b3;
$custom-light: #e181ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b3",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 311.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61545,
    "c": 0.21259,
    "h": 336.5
  },
  "luminance": 0.20273
}

Semantic roles & 50–950 ramp

primary
#CE42B3
secondary
#98D4A3
accent
#E26446
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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