#CD40BA#CD40BA

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

Color values

HEX#CD40BA
RGBrgb(205, 64, 186)
HSLhsl(308, 59%, 53%)
HSVhsv(308, 69%, 80%)
CMYKcmyk(0%, 68.8%, 9.3%, 19.6%)
CIE-LABlab(52.06, 67.99, -35.35)
CIE-LCHlch(52.06, 76.64, 332.53°)
OKLaboklab(61.55% 0.1969 -0.0967)
OKLCHoklch(61.55% 0.219 333.8)
XYZxyz(35.8734, 20.1941, 48.4533)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40BA #40CD53
analogous
#9940CD #CD40BA #CD4074
triadic
#CD40BA #BACD40 #40BACD
tetradic
#CD40BA #CD9940 #40CD53 #4074CD
square
#CD40BA #CD9940 #40CD53 #4074CD
split-complementary
#CD40BA #74CD40 #40CD99
monochromatic
#741E69 #A52B94 #CD40BA #DA71CC #E6A1DD

Accessibility & contrast

On white

4.17
#CD40BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CD40BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40BA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40BA#FFFFFF#000000##000000
##CD40BA1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#6E83B7
Tritanopia (blue-blind)
#D64C78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40ba;
/* rgb */ color: rgb(205, 64, 186);
/* oklch */ color: oklch(61.6% 0.219 333.8);
Tailwind
colors: {
  custom: {
    50: '#e080cf',
    500: '#cd40ba',
    950: '#000000',
  },
}
SCSS
$custom: #cd40ba;
$custom-light: #e080cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40ba",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 308.085,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61553,
    "c": 0.21939,
    "h": 333.8
  },
  "luminance": 0.20191
}

Semantic roles & 50–950 ramp

primary
#CD40BA
secondary
#96D39E
accent
#E25B46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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