#CE42C7#CE42C7

#CE42C7 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.227 H 330.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CE42C7
RGBrgb(206, 66, 199)
HSLhsl(303, 59%, 53%)
HSVhsv(303, 68%, 81%)
CMYKcmyk(0%, 68%, 3.4%, 19.2%)
CIE-LABlab(53.11, 69.53, -41.20)
CIE-LCHlch(53.11, 80.82, 329.35°)
OKLaboklab(62.55% 0.1968 -0.1136)
OKLCHoklch(62.55% 0.227 330)
XYZxyz(37.7104, 21.1446, 56.1169)
Luminance0.2114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42C7 #42CE49
analogous
#8F42CE #CE42C7 #CE4281
triadic
#CE42C7 #C7CE42 #42C7CE
tetradic
#CE42C7 #CE8F42 #42CE49 #4281CE
square
#CE42C7 #CE8F42 #42CE49 #4281CE
split-complementary
#CE42C7 #81CE42 #42CE8F
monochromatic
#771F72 #A72BA1 #CE42C7 #DB73D5 #E7A3E4

Accessibility & contrast

On white

4.02
#CE42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CE42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42C7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42C7#FFFFFF#000000##000000
##CE42C71.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3473CB
Deuteranopia (green-blind)
#6A86C3
Tritanopia (blue-blind)
#D55380
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ce42c7;
/* rgb */ color: rgb(206, 66, 199);
/* oklch */ color: oklch(62.6% 0.227 330.0);
Tailwind
colors: {
  custom: {
    50: '#e182d8',
    500: '#ce42c7',
    950: '#000000',
  },
}
SCSS
$custom: #ce42c7;
$custom-light: #e182d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42c7",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 303,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62551,
    "c": 0.22719,
    "h": 330
  },
  "luminance": 0.21142
}

Semantic roles & 50–950 ramp

primary
#CE42C7
secondary
#98D49B
accent
#E24E46
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CE42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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