#CE40C2#CE40C2

#CE40C2 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.1% C 0.226 H 331.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#CE40C2
RGBrgb(206, 64, 194)
HSLhsl(305, 59%, 53%)
HSVhsv(305, 69%, 81%)
CMYKcmyk(0%, 68.9%, 5.8%, 19.2%)
CIE-LABlab(52.60, 69.45, -39.11)
CIE-LCHlch(52.60, 79.71, 330.61°)
OKLaboklab(62.11% 0.1985 -0.1075)
OKLCHoklch(62.11% 0.226 331.6)
XYZxyz(37.0246, 20.6866, 53.0713)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40C2 #40CE4C
analogous
#9340CE #CE40C2 #CE407B
triadic
#CE40C2 #C2CE40 #40C2CE
tetradic
#CE40C2 #CE9340 #40CE4C #407BCE
square
#CE40C2 #CE9340 #40CE4C #407BCE
split-complementary
#CE40C2 #7BCE40 #40CE93
monochromatic
#751E6E #A62B9C #CE40C2 #DA71D2 #E7A1E1

Accessibility & contrast

On white

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

On black

5.14
#CE40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40C2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40C2#FFFFFF#000000##000000
##CE40C21.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3671C6
Deuteranopia (green-blind)
#6B85BE
Tritanopia (blue-blind)
#D64F7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce40c2;
/* rgb */ color: rgb(206, 64, 194);
/* oklch */ color: oklch(62.1% 0.226 331.6);
Tailwind
colors: {
  custom: {
    50: '#e181d5',
    500: '#ce40c2',
    950: '#000000',
  },
}
SCSS
$custom: #ce40c2;
$custom-light: #e181d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40c2",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 305.07,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62107,
    "c": 0.22579,
    "h": 331.6
  },
  "luminance": 0.20684
}

Semantic roles & 50–950 ramp

primary
#CE40C2
secondary
#96D49B
accent
#E25345
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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