#CE42B7#CE42B7

#CE42B7 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.215 H 335.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CE42B7
RGBrgb(206, 66, 183)
HSLhsl(310, 59%, 53%)
HSVhsv(310, 68%, 81%)
CMYKcmyk(0%, 68%, 11.2%, 19.2%)
CIE-LABlab(52.33, 67.06, -33.17)
CIE-LCHlch(52.33, 74.82, 333.68°)
OKLaboklab(61.74% 0.1955 -0.0905)
OKLCHoklch(61.74% 0.215 335.2)
XYZxyz(35.9494, 20.4402, 46.8426)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B7 #42CE59
analogous
#9F42CE #CE42B7 #CE4271
triadic
#CE42B7 #B7CE42 #42B7CE
tetradic
#CE42B7 #CE9F42 #42CE59 #4271CE
square
#CE42B7 #CE9F42 #42CE59 #4271CE
split-complementary
#CE42B7 #71CE42 #42CE9F
monochromatic
#771F68 #A72B93 #CE42B7 #DB73CA #E7A3DC

Accessibility & contrast

On white

4.13
#CE42B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#CE42B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B7#FFFFFF#000000##000000
##CE42B71.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#426FBA
Deuteranopia (green-blind)
#7184B4
Tritanopia (blue-blind)
#D84C77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce42b7;
/* rgb */ color: rgb(206, 66, 183);
/* oklch */ color: oklch(61.7% 0.215 335.2);
Tailwind
colors: {
  custom: {
    50: '#e181cd',
    500: '#ce42b7',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b7;
$custom-light: #e181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b7",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 309.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61738,
    "c": 0.21541,
    "h": 335.2
  },
  "luminance": 0.20437
}

Semantic roles & 50–950 ramp

primary
#CE42B7
secondary
#98D4A2
accent
#E25F46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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