#CD40B7#CD40B7

#CD40B7 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.4% C 0.217 H 334.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CD40B7
RGBrgb(205, 64, 183)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 69%, 80%)
CMYKcmyk(0%, 68.8%, 10.7%, 19.6%)
CIE-LABlab(51.91, 67.54, -33.83)
CIE-LCHlch(51.91, 75.54, 333.39°)
OKLaboklab(61.4% 0.1966 -0.0924)
OKLCHoklch(61.4% 0.217 334.8)
XYZxyz(35.5578, 20.0678, 46.7913)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B7 #40CD56
analogous
#9D40CD #CD40B7 #CD4070
triadic
#CD40B7 #B7CD40 #40B7CD
tetradic
#CD40B7 #CD9D40 #40CD56 #4070CD
square
#CD40B7 #CD9D40 #40CD56 #4070CD
split-complementary
#CD40B7 #70CD40 #40CD9D
monochromatic
#741E67 #A52B92 #CD40B7 #DA71C9 #E6A1DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD40B7#FFFFFF#000000##000000
##CD40B71.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)
#3F6EBA
Deuteranopia (green-blind)
#6F83B4
Tritanopia (blue-blind)
#D74B76
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40b7;
/* rgb */ color: rgb(205, 64, 183);
/* oklch */ color: oklch(61.4% 0.217 334.8);
Tailwind
colors: {
  custom: {
    50: '#e080cd',
    500: '#cd40b7',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b7;
$custom-light: #e080cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b7",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 309.362,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61404,
    "c": 0.21725,
    "h": 334.8
  },
  "luminance": 0.20065
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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