#CA40BB#CA40BB

#CA40BB is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.2% C 0.218 H 332.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CA40BB
RGBrgb(202, 64, 187)
HSLhsl(307, 57%, 52%)
HSVhsv(307, 68%, 79%)
CMYKcmyk(0%, 68.3%, 7.4%, 20.8%)
CIE-LABlab(51.63, 67.44, -36.64)
CIE-LCHlch(51.63, 76.75, 331.48°)
OKLaboklab(61.17% 0.194 -0.1005)
OKLCHoklch(61.17% 0.218 332.6)
XYZxyz(35.1603, 19.8140, 48.9767)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40BB #40CA4F
analogous
#9440CA #CA40BB #CA4076
triadic
#CA40BB #BBCA40 #40BBCA
tetradic
#CA40BB #CA9440 #40CA4F #4076CA
square
#CA40BB #CA9440 #40CA4F #4076CA
split-complementary
#CA40BB #76CA40 #40CA94
monochromatic
#701F68 #A02C94 #CA40BB #D770CC #E5A0DD

Accessibility & contrast

On white

4.23
#CA40BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CA40BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40BB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40BB#FFFFFF#000000##000000
##CA40BB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBF
Deuteranopia (green-blind)
#6B82B8
Tritanopia (blue-blind)
#D34D78
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40bb;
/* rgb */ color: rgb(202, 64, 187);
/* oklch */ color: oklch(61.2% 0.218 332.6);
Tailwind
colors: {
  custom: {
    50: '#de80d0',
    500: '#ca40bb',
    950: '#000000',
  },
}
SCSS
$custom: #ca40bb;
$custom-light: #de80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40bb",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 306.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.21844,
    "h": 332.6
  },
  "luminance": 0.19811
}

Semantic roles & 50–950 ramp

primary
#CA40BB
secondary
#95D19B
accent
#E05848
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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