#CE42C2#CE42C2

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

Color values

HEX#CE42C2
RGBrgb(206, 66, 194)
HSLhsl(305, 59%, 53%)
HSVhsv(305, 68%, 81%)
CMYKcmyk(0%, 68%, 5.8%, 19.2%)
CIE-LABlab(52.86, 68.74, -38.71)
CIE-LCHlch(52.86, 78.89, 330.61°)
OKLaboklab(62.29% 0.1965 -0.1064)
OKLCHoklch(62.29% 0.223 331.6)
XYZxyz(37.1394, 20.9162, 53.1096)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42C2 #42CE4E
analogous
#9442CE #CE42C2 #CE427C
triadic
#CE42C2 #C2CE42 #42C2CE
tetradic
#CE42C2 #CE9442 #42CE4E #427CCE
square
#CE42C2 #CE9442 #42CE4E #427CCE
split-complementary
#CE42C2 #7CCE42 #42CE94
monochromatic
#771F6F #A72B9D #CE42C2 #DB73D2 #E7A3E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CE42C2#FFFFFF#000000##000000
##CE42C21.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)
#3972C6
Deuteranopia (green-blind)
#6C85BE
Tritanopia (blue-blind)
#D6517D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ce42c2;
/* rgb */ color: rgb(206, 66, 194);
/* oklch */ color: oklch(62.3% 0.223 331.6);
Tailwind
colors: {
  custom: {
    50: '#e182d5',
    500: '#ce42c2',
    950: '#000000',
  },
}
SCSS
$custom: #ce42c2;
$custom-light: #e182d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42c2",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 305.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.6229,
    "c": 0.22343,
    "h": 331.6
  },
  "luminance": 0.20913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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