#CE40C7#CE40C7

#CE40C7 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.4% C 0.230 H 330.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#CE40C7
RGBrgb(206, 64, 199)
HSLhsl(303, 59%, 53%)
HSVhsv(303, 69%, 81%)
CMYKcmyk(0%, 68.9%, 3.4%, 19.2%)
CIE-LABlab(52.86, 70.24, -41.60)
CIE-LCHlch(52.86, 81.63, 329.36°)
OKLaboklab(62.37% 0.1988 -0.1147)
OKLCHoklch(62.37% 0.23 330)
XYZxyz(37.5956, 20.9150, 56.0786)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40C7 #40CE47
analogous
#8E40CE #CE40C7 #CE4080
triadic
#CE40C7 #C7CE40 #40C7CE
tetradic
#CE40C7 #CE8E40 #40CE47 #4080CE
square
#CE40C7 #CE8E40 #40CE47 #4080CE
split-complementary
#CE40C7 #80CE40 #40CE8E
monochromatic
#751E71 #A62BA0 #CE40C7 #DA71D5 #E7A1E4

Accessibility & contrast

On white

4.05
#CE40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#CE40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40C7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40C7#FFFFFF#000000##000000
##CE40C71.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CB
Deuteranopia (green-blind)
#6985C3
Tritanopia (blue-blind)
#D5527F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ce40c7;
/* rgb */ color: rgb(206, 64, 199);
/* oklch */ color: oklch(62.4% 0.230 330.0);
Tailwind
colors: {
  custom: {
    50: '#e181d8',
    500: '#ce40c7',
    950: '#000000',
  },
}
SCSS
$custom: #ce40c7;
$custom-light: #e181d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40c7",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 302.958,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6237,
    "c": 0.22952,
    "h": 330
  },
  "luminance": 0.20912
}

Semantic roles & 50–950 ramp

primary
#CE40C7
secondary
#96D499
accent
#E24D45
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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