#CE40B3#CE40B3

#CE40B3 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.4% C 0.215 H 336.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CE40B3
RGBrgb(206, 64, 179)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 69%, 81%)
CMYKcmyk(0%, 68.9%, 13.1%, 19.2%)
CIE-LABlab(51.89, 67.20, -31.53)
CIE-LCHlch(51.89, 74.23, 334.86°)
OKLaboklab(61.36% 0.1972 -0.0858)
OKLCHoklch(61.36% 0.215 336.5)
XYZxyz(35.4242, 20.0464, 44.6427)
Luminance0.2004 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40B3 #40CE5B
analogous
#A240CE #CE40B3 #CE406C
triadic
#CE40B3 #B3CE40 #40B3CE
tetradic
#CE40B3 #CEA240 #40CE5B #406CCE
square
#CE40B3 #CEA240 #40CE5B #406CCE
split-complementary
#CE40B3 #6CCE40 #40CEA2
monochromatic
#751E65 #A62B8F #CE40B3 #DA71C6 #E7A1DA

Accessibility & contrast

On white

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

On black

5.01
#CE40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40B3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40B3#FFFFFF#000000##000000
##CE40B31.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#7283B0
Tritanopia (blue-blind)
#D94974
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce40b3;
/* rgb */ color: rgb(206, 64, 179);
/* oklch */ color: oklch(61.4% 0.215 336.5);
Tailwind
colors: {
  custom: {
    50: '#e180ca',
    500: '#ce40b3',
    950: '#000000',
  },
}
SCSS
$custom: #ce40b3;
$custom-light: #e180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40b3",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 311.408,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61357,
    "c": 0.21502,
    "h": 336.5
  },
  "luminance": 0.20043
}

Semantic roles & 50–950 ramp

primary
#CE40B3
secondary
#96D4A2
accent
#E26345
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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