#CE40B8#CE40B8

#CE40B8 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.219 H 334.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CE40B8
RGBrgb(206, 64, 184)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 69%, 81%)
CMYKcmyk(0%, 68.9%, 10.7%, 19.2%)
CIE-LABlab(52.12, 67.93, -34.08)
CIE-LCHlch(52.12, 76.00, 333.36°)
OKLaboklab(61.6% 0.1977 -0.093)
OKLCHoklch(61.6% 0.219 334.8)
XYZxyz(35.9391, 20.2524, 47.3544)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE40B8 #40CE56
analogous
#9D40CE #CE40B8 #CE4071
triadic
#CE40B8 #B8CE40 #40B8CE
tetradic
#CE40B8 #CE9D40 #40CE56 #4071CE
square
#CE40B8 #CE9D40 #40CE56 #4071CE
split-complementary
#CE40B8 #71CE40 #40CE9D
monochromatic
#751E68 #A62B93 #CE40B8 #DA71CA #E7A1DC

Accessibility & contrast

On white

4.16
#CE40B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CE40B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CE40B8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE40B8#FFFFFF#000000##000000
##CE40B81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBB
Deuteranopia (green-blind)
#7084B5
Tritanopia (blue-blind)
#D84B77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ce40b8;
/* rgb */ color: rgb(206, 64, 184);
/* oklch */ color: oklch(61.6% 0.219 334.8);
Tailwind
colors: {
  custom: {
    50: '#e181cd',
    500: '#ce40b8',
    950: '#000000',
  },
}
SCSS
$custom: #ce40b8;
$custom-light: #e181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce40b8",
  "rgb": {
    "r": 206,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 309.296,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61601,
    "c": 0.21853,
    "h": 334.8
  },
  "luminance": 0.20249
}

Semantic roles & 50–950 ramp

primary
#CE40B8
secondary
#96D4A0
accent
#E25E45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CE40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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