#CE40D3#CE40D3

#CE40D3 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 63.0% C 0.239 H 326.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#CE40D3
RGBrgb(206, 64, 211)
HSLhsl(298, 63%, 54%)
HSVhsv(298, 70%, 83%)
CMYKcmyk(2.4%, 69.7%, 0%, 17.3%)
CIE-LABlab(53.49, 72.18, -47.47)
CIE-LCHlch(53.49, 86.39, 326.66°)
OKLaboklab(63.03% 0.1991 -0.1317)
OKLCHoklch(63.03% 0.239 326.5)
XYZxyz(39.0442, 21.4944, 63.7077)
Luminance0.2149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40D3 #45D340
analogous
#8540D3 #CE40D3 #D3408F
triadic
#CE40D3 #D3CE40 #40D3CE
tetradic
#CE40D3 #D38540 #45D340 #408FD3
square
#CE40D3 #D38540 #45D340 #408FD3
split-complementary
#CE40D3 #8FD340 #40D385
monochromatic
#791D7C #A928AE #CE40D3 #DB72DE #E8A3EA

Accessibility & contrast

On white

3.96
#CE40D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#CE40D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40D3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40D3#FFFFFF#000000##000000
##CE40D31.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2074D7
Deuteranopia (green-blind)
#6286CF
Tritanopia (blue-blind)
#D35785
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ce40d3;
/* rgb */ color: rgb(206, 64, 211);
/* oklch */ color: oklch(63.0% 0.239 326.5);
Tailwind
colors: {
  custom: {
    50: '#e181e1',
    500: '#ce40d3',
    950: '#000000',
  },
}
SCSS
$custom: #ce40d3;
$custom-light: #e181e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40d3",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 297.959,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63026,
    "c": 0.2387,
    "h": 326.5
  },
  "luminance": 0.21492
}

Semantic roles & 50–950 ramp

primary
#CE40D3
secondary
#9AD798
accent
#E64248
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CE40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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