#CA40BD#CA40BD

#CA40BD is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.220 H 332.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CA40BD
RGBrgb(202, 64, 189)
HSLhsl(306, 57%, 52%)
HSVhsv(306, 68%, 79%)
CMYKcmyk(0%, 68.3%, 6.4%, 20.8%)
CIE-LABlab(51.72, 67.75, -37.65)
CIE-LCHlch(51.72, 77.50, 330.94°)
OKLaboklab(61.27% 0.1941 -0.1034)
OKLCHoklch(61.27% 0.22 332)
XYZxyz(35.3759, 19.9003, 50.1122)
Luminance0.1990 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40BD #40CA4D
analogous
#9240CA #CA40BD #CA4078
triadic
#CA40BD #BDCA40 #40BDCA
tetradic
#CA40BD #CA9240 #40CA4D #4078CA
square
#CA40BD #CA9240 #40CA4D #4078CA
split-complementary
#CA40BD #78CA40 #40CA92
monochromatic
#701F69 #A02C95 #CA40BD #D770CE #E5A0DE

Accessibility & contrast

On white

4.22
#CA40BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CA40BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40BD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40BD#FFFFFF#000000##000000
##CA40BD1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#386FC1
Deuteranopia (green-blind)
#6A82BA
Tritanopia (blue-blind)
#D24E79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40bd;
/* rgb */ color: rgb(202, 64, 189);
/* oklch */ color: oklch(61.3% 0.220 332.0);
Tailwind
colors: {
  custom: {
    50: '#de80d1',
    500: '#ca40bd',
    950: '#000000',
  },
}
SCSS
$custom: #ca40bd;
$custom-light: #de80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40bd",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 305.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61269,
    "c": 0.21992,
    "h": 332
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

primary
#CA40BD
secondary
#95D19A
accent
#E05648
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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