#CA40B9#CA40B9

#CA40B9 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.217 H 333.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CA40B9
RGBrgb(202, 64, 185)
HSLhsl(307, 57%, 52%)
HSVhsv(307, 68%, 79%)
CMYKcmyk(0%, 68.3%, 8.4%, 20.8%)
CIE-LABlab(51.53, 67.13, -35.63)
CIE-LCHlch(51.53, 76.00, 332.04°)
OKLaboklab(61.06% 0.1938 -0.0976)
OKLCHoklch(61.06% 0.217 333.3)
XYZxyz(34.9476, 19.7290, 47.8570)
Luminance0.1973 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B9 #40CA51
analogous
#9640CA #CA40B9 #CA4074
triadic
#CA40B9 #B9CA40 #40B9CA
tetradic
#CA40B9 #CA9640 #40CA51 #4074CA
square
#CA40B9 #CA9640 #40CA51 #4074CA
split-complementary
#CA40B9 #74CA40 #40CA96
monochromatic
#701F66 #A02C92 #CA40B9 #D770CB #E5A0DC

Accessibility & contrast

On white

4.25
#CA40B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CA40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B9#FFFFFF#000000##000000
##CA40B91.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6EBC
Deuteranopia (green-blind)
#6C82B6
Tritanopia (blue-blind)
#D34C77
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40b9;
/* rgb */ color: rgb(202, 64, 185);
/* oklch */ color: oklch(61.1% 0.217 333.3);
Tailwind
colors: {
  custom: {
    50: '#de80ce',
    500: '#ca40b9',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b9;
$custom-light: #de80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b9",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 307.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.21697,
    "h": 333.3
  },
  "luminance": 0.19726
}

Semantic roles & 50–950 ramp

primary
#CA40B9
secondary
#95D19C
accent
#E05B48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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