#CE40B4#CE40B4

#CE40B4 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.4% C 0.216 H 336.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CE40B4
RGBrgb(206, 64, 180)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 69%, 81%)
CMYKcmyk(0%, 68.9%, 12.6%, 19.2%)
CIE-LABlab(51.94, 67.34, -32.04)
CIE-LCHlch(51.94, 74.58, 334.56°)
OKLaboklab(61.41% 0.1973 -0.0872)
OKLCHoklch(61.41% 0.216 336.2)
XYZxyz(35.5257, 20.0870, 45.1773)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40B4 #40CE5A
analogous
#A140CE #CE40B4 #CE406D
triadic
#CE40B4 #B4CE40 #40B4CE
tetradic
#CE40B4 #CEA140 #40CE5A #406DCE
square
#CE40B4 #CEA140 #40CE5A #406DCE
split-complementary
#CE40B4 #6DCE40 #40CEA1
monochromatic
#751E65 #A62B90 #CE40B4 #DA71C7 #E7A1DA

Accessibility & contrast

On white

4.19
#CE40B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CE40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40B4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40B4#FFFFFF#000000##000000
##CE40B41.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#426EB7
Deuteranopia (green-blind)
#7284B1
Tritanopia (blue-blind)
#D84975
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce40b4;
/* rgb */ color: rgb(206, 64, 180);
/* oklch */ color: oklch(61.4% 0.216 336.2);
Tailwind
colors: {
  custom: {
    50: '#e180cb',
    500: '#ce40b4',
    950: '#000000',
  },
}
SCSS
$custom: #ce40b4;
$custom-light: #e180cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40b4",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 310.986,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.21572,
    "h": 336.2
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#CE40B4
secondary
#96D4A1
accent
#E26245
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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