#CE42B5#CE42B5

#CE42B5 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.6% C 0.214 H 335.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CE42B5
RGBrgb(206, 66, 181)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 68%, 81%)
CMYKcmyk(0%, 68%, 12.1%, 19.2%)
CIE-LABlab(52.24, 66.77, -32.15)
CIE-LCHlch(52.24, 74.10, 334.29°)
OKLaboklab(61.64% 0.1953 -0.0875)
OKLCHoklch(61.64% 0.214 335.9)
XYZxyz(35.7428, 20.3575, 45.7540)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B5 #42CE5B
analogous
#A142CE #CE42B5 #CE426F
triadic
#CE42B5 #B5CE42 #42B5CE
tetradic
#CE42B5 #CEA142 #42CE5B #426FCE
square
#CE42B5 #CEA142 #42CE5B #426FCE
split-complementary
#CE42B5 #6FCE42 #42CEA1
monochromatic
#771F67 #A72B91 #CE42B5 #DB73C8 #E7A3DB

Accessibility & contrast

On white

4.14
#CE42B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CE42B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B5#FFFFFF#000000##000000
##CE42B51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#436FB8
Deuteranopia (green-blind)
#7284B2
Tritanopia (blue-blind)
#D84B76
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce42b5;
/* rgb */ color: rgb(206, 66, 181);
/* oklch */ color: oklch(61.6% 0.214 335.9);
Tailwind
colors: {
  custom: {
    50: '#e181cb',
    500: '#ce42b5',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b5;
$custom-light: #e181cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b5",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 310.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61641,
    "c": 0.214,
    "h": 335.9
  },
  "luminance": 0.20354
}

Semantic roles & 50–950 ramp

primary
#CE42B5
secondary
#98D4A3
accent
#E26246
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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