#CE40BC#CE40BC

#CE40BC is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.221 H 333.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CE40BC
RGBrgb(206, 64, 188)
HSLhsl(308, 59%, 53%)
HSVhsv(308, 69%, 81%)
CMYKcmyk(0%, 68.9%, 8.7%, 19.2%)
CIE-LABlab(52.31, 68.53, -36.10)
CIE-LCHlch(52.31, 77.46, 332.22°)
OKLaboklab(61.8% 0.1981 -0.0989)
OKLCHoklch(61.8% 0.221 333.5)
XYZxyz(36.3643, 20.4224, 49.5939)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40BC #40CE52
analogous
#9940CE #CE40BC #CE4075
triadic
#CE40BC #BCCE40 #40BCCE
tetradic
#CE40BC #CE9940 #40CE52 #4075CE
square
#CE40BC #CE9940 #40CE52 #4075CE
split-complementary
#CE40BC #75CE40 #40CE99
monochromatic
#751E6A #A62B97 #CE40BC #DA71CD #E7A1DE

Accessibility & contrast

On white

4.13
#CE40BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CE40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40BC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40BC#FFFFFF#000000##000000
##CE40BC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C70C0
Deuteranopia (green-blind)
#6E84B8
Tritanopia (blue-blind)
#D74D79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce40bc;
/* rgb */ color: rgb(206, 64, 188);
/* oklch */ color: oklch(61.8% 0.221 333.5);
Tailwind
colors: {
  custom: {
    50: '#e181d0',
    500: '#ce40bc',
    950: '#000000',
  },
}
SCSS
$custom: #ce40bc;
$custom-light: #e181d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40bc",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 307.606,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.618,
    "c": 0.2214,
    "h": 333.5
  },
  "luminance": 0.20419
}

Semantic roles & 50–950 ramp

primary
#CE40BC
secondary
#96D49E
accent
#E25945
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CE40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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