#CE42C1#CE42C1

#CE42C1 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.2% C 0.223 H 331.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#CE42C1
RGBrgb(206, 66, 193)
HSLhsl(306, 59%, 53%)
HSVhsv(306, 68%, 81%)
CMYKcmyk(0%, 68%, 6.3%, 19.2%)
CIE-LABlab(52.81, 68.58, -38.21)
CIE-LCHlch(52.81, 78.51, 330.87°)
OKLaboklab(62.24% 0.1964 -0.1049)
OKLCHoklch(62.24% 0.223 331.9)
XYZxyz(37.0275, 20.8714, 52.5201)
Luminance0.2087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42C1 #42CE4F
analogous
#9542CE #CE42C1 #CE427B
triadic
#CE42C1 #C1CE42 #42C1CE
tetradic
#CE42C1 #CE9542 #42CE4F #427BCE
square
#CE42C1 #CE9542 #42CE4F #427BCE
split-complementary
#CE42C1 #7BCE42 #42CE95
monochromatic
#771F6F #A72B9C #CE42C1 #DB73D1 #E7A3E1

Accessibility & contrast

On white

4.06
#CE42C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#CE42C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42C1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42C1#FFFFFF#000000##000000
##CE42C11.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A71C5
Deuteranopia (green-blind)
#6D85BD
Tritanopia (blue-blind)
#D6507C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ce42c1;
/* rgb */ color: rgb(206, 66, 193);
/* oklch */ color: oklch(62.2% 0.223 331.9);
Tailwind
colors: {
  custom: {
    50: '#e182d4',
    500: '#ce42c1',
    950: '#000000',
  },
}
SCSS
$custom: #ce42c1;
$custom-light: #e182d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42c1",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 305.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62238,
    "c": 0.22268,
    "h": 331.9
  },
  "luminance": 0.20868
}

Semantic roles & 50–950 ramp

primary
#CE42C1
secondary
#98D49D
accent
#E25446
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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