#CD40B8#CD40B8

#CD40B8 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.218 H 334.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CD40B8
RGBrgb(205, 64, 184)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 69%, 80%)
CMYKcmyk(0%, 68.8%, 10.2%, 19.6%)
CIE-LABlab(51.96, 67.69, -34.34)
CIE-LCHlch(51.96, 75.91, 333.10°)
OKLaboklab(61.45% 0.1967 -0.0938)
OKLCHoklch(61.45% 0.218 334.5)
XYZxyz(35.6623, 20.1096, 47.3414)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B8 #40CD55
analogous
#9B40CD #CD40B8 #CD4072
triadic
#CD40B8 #B8CD40 #40B8CD
tetradic
#CD40B8 #CD9B40 #40CD55 #4072CD
square
#CD40B8 #CD9B40 #40CD55 #4072CD
split-complementary
#CD40B8 #72CD40 #40CD9B
monochromatic
#741E67 #A52B93 #CD40B8 #DA71CA #E6A1DC

Accessibility & contrast

On white

4.18
#CD40B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD40B8#FFFFFF#000000##000000
##CD40B81.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBB
Deuteranopia (green-blind)
#6F83B5
Tritanopia (blue-blind)
#D74B77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40b8;
/* rgb */ color: rgb(205, 64, 184);
/* oklch */ color: oklch(61.5% 0.218 334.5);
Tailwind
colors: {
  custom: {
    50: '#e080cd',
    500: '#cd40b8',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b8;
$custom-light: #e080cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b8",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 308.936,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61454,
    "c": 0.21796,
    "h": 334.5
  },
  "luminance": 0.20107
}

Semantic roles & 50–950 ramp

primary
#CD40B8
secondary
#96D39F
accent
#E25D46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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