#CE42B8#CE42B8

#CE42B8 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.8% C 0.216 H 334.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CE42B8
RGBrgb(206, 66, 184)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 68%, 81%)
CMYKcmyk(0%, 68%, 10.7%, 19.2%)
CIE-LABlab(52.38, 67.21, -33.68)
CIE-LCHlch(52.38, 75.18, 333.39°)
OKLaboklab(61.79% 0.1956 -0.0919)
OKLCHoklch(61.79% 0.216 334.8)
XYZxyz(36.0539, 20.4820, 47.3927)
Luminance0.2048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B8 #42CE58
analogous
#9E42CE #CE42B8 #CE4272
triadic
#CE42B8 #B8CE42 #42B8CE
tetradic
#CE42B8 #CE9E42 #42CE58 #4272CE
square
#CE42B8 #CE9E42 #42CE58 #4272CE
split-complementary
#CE42B8 #72CE42 #42CE9E
monochromatic
#771F69 #A72B94 #CE42B8 #DB73CA #E7A3DD

Accessibility & contrast

On white

4.12
#CE42B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CE42B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B8#FFFFFF#000000##000000
##CE42B81.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4170BB
Deuteranopia (green-blind)
#7184B5
Tritanopia (blue-blind)
#D84C78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce42b8;
/* rgb */ color: rgb(206, 66, 184);
/* oklch */ color: oklch(61.8% 0.216 334.8);
Tailwind
colors: {
  custom: {
    50: '#e181cd',
    500: '#ce42b8',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b8;
$custom-light: #e181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b8",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 309.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61787,
    "c": 0.21612,
    "h": 334.8
  },
  "luminance": 0.20479
}

Semantic roles & 50–950 ramp

primary
#CE42B8
secondary
#98D4A1
accent
#E25E46
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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