#CE42B4#CE42B4

#CE42B4 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.6% C 0.213 H 336.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CE42B4
RGBrgb(206, 66, 180)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 68%, 81%)
CMYKcmyk(0%, 68%, 12.6%, 19.2%)
CIE-LABlab(52.19, 66.62, -31.64)
CIE-LCHlch(52.19, 73.75, 334.60°)
OKLaboklab(61.59% 0.1952 -0.0861)
OKLCHoklch(61.59% 0.213 336.2)
XYZxyz(35.6405, 20.3166, 45.2156)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B4 #42CE5C
analogous
#A242CE #CE42B4 #CE426E
triadic
#CE42B4 #B4CE42 #42B4CE
tetradic
#CE42B4 #CEA242 #42CE5C #426ECE
square
#CE42B4 #CEA242 #42CE5C #426ECE
split-complementary
#CE42B4 #6ECE42 #42CEA2
monochromatic
#771F66 #A72B90 #CE42B4 #DB73C7 #E7A3DB

Accessibility & contrast

On white

4.15
#CE42B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CE42B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE42B4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE42B4#FFFFFF#000000##000000
##CE42B41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#446FB7
Deuteranopia (green-blind)
#7284B1
Tritanopia (blue-blind)
#D84B75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce42b4;
/* rgb */ color: rgb(206, 66, 180);
/* oklch */ color: oklch(61.6% 0.213 336.2);
Tailwind
colors: {
  custom: {
    50: '#e181cb',
    500: '#ce42b4',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b4;
$custom-light: #e181cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b4",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 311.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.2133,
    "h": 336.2
  },
  "luminance": 0.20314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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