#CE42B9#CE42B9

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

Color values

HEX#CE42B9
RGBrgb(206, 66, 185)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 68%, 81%)
CMYKcmyk(0%, 68%, 10.2%, 19.2%)
CIE-LABlab(52.42, 67.36, -34.19)
CIE-LCHlch(52.42, 75.54, 333.09°)
OKLaboklab(61.84% 0.1957 -0.0934)
OKLCHoklch(61.84% 0.217 334.5)
XYZxyz(36.1591, 20.5240, 47.9467)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE42B9 #42CE57
analogous
#9D42CE #CE42B9 #CE4273
triadic
#CE42B9 #B9CE42 #42B9CE
tetradic
#CE42B9 #CE9D42 #42CE57 #4273CE
square
#CE42B9 #CE9D42 #42CE57 #4273CE
split-complementary
#CE42B9 #73CE42 #42CE9D
monochromatic
#771F6A #A72B95 #CE42B9 #DB73CB #E7A3DD

Accessibility & contrast

On white

4.11
#CE42B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CE42B9#FFFFFF#000000##000000
##CE42B91.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4070BC
Deuteranopia (green-blind)
#7084B6
Tritanopia (blue-blind)
#D84D78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ce42b9;
/* rgb */ color: rgb(206, 66, 185);
/* oklch */ color: oklch(61.8% 0.217 334.5);
Tailwind
colors: {
  custom: {
    50: '#e181ce',
    500: '#ce42b9',
    950: '#000000',
  },
}
SCSS
$custom: #ce42b9;
$custom-light: #e181ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ce42b9",
  "rgb": {
    "r": 206,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 309,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61836,
    "c": 0.21684,
    "h": 334.5
  },
  "luminance": 0.20521
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CE42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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