#CE42BC#CE42BC

#CE42BC is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.219 H 333.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CE42BC
RGBrgb(206, 66, 188)
HSLhsl(308, 59%, 53%)
HSVhsv(308, 68%, 81%)
CMYKcmyk(0%, 68%, 8.7%, 19.2%)
CIE-LABlab(52.57, 67.82, -35.70)
CIE-LCHlch(52.57, 76.64, 332.23°)
OKLaboklab(61.99% 0.196 -0.0977)
OKLCHoklch(61.99% 0.219 333.5)
XYZxyz(36.4791, 20.6521, 49.6322)
Luminance0.2065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42BC #42CE54
analogous
#9A42CE #CE42BC #CE4276
triadic
#CE42BC #BCCE42 #42BCCE
tetradic
#CE42BC #CE9A42 #42CE54 #4276CE
square
#CE42BC #CE9A42 #42CE54 #4276CE
split-complementary
#CE42BC #76CE42 #42CE9A
monochromatic
#771F6B #A72B97 #CE42BC #DB73CD #E7A3DE

Accessibility & contrast

On white

4.09
#CE42BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#CE42BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42BC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42BC#FFFFFF#000000##000000
##CE42BC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E70BF
Deuteranopia (green-blind)
#6F85B9
Tritanopia (blue-blind)
#D74E7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce42bc;
/* rgb */ color: rgb(206, 66, 188);
/* oklch */ color: oklch(62.0% 0.219 333.5);
Tailwind
colors: {
  custom: {
    50: '#e182d0',
    500: '#ce42bc',
    950: '#000000',
  },
}
SCSS
$custom: #ce42bc;
$custom-light: #e182d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42bc",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 307.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61985,
    "c": 0.21901,
    "h": 333.5
  },
  "luminance": 0.20649
}

Semantic roles & 50–950 ramp

primary
#CE42BC
secondary
#98D4A0
accent
#E25A46
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CE42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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