#CA40B3#CA40B3

#CA40B3 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.8% C 0.213 H 335.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CA40B3
RGBrgb(202, 64, 179)
HSLhsl(310, 57%, 52%)
HSVhsv(310, 68%, 79%)
CMYKcmyk(0%, 68.3%, 11.4%, 20.8%)
CIE-LABlab(51.25, 66.22, -32.58)
CIE-LCHlch(51.25, 73.80, 333.80°)
OKLaboklab(60.77% 0.1932 -0.0888)
OKLCHoklch(60.77% 0.213 335.3)
XYZxyz(34.3276, 19.4810, 44.5913)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B3 #40CA57
analogous
#9C40CA #CA40B3 #CA406E
triadic
#CA40B3 #B3CA40 #40B3CA
tetradic
#CA40B3 #CA9C40 #40CA57 #406ECA
square
#CA40B3 #CA9C40 #40CA57 #406ECA
split-complementary
#CA40B3 #6ECA40 #40CA9C
monochromatic
#701F63 #A02C8D #CA40B3 #D770C6 #E5A0D9

Accessibility & contrast

On white

4.29
#CA40B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CA40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B3#FFFFFF#000000##000000
##CA40B31.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#406DB6
Deuteranopia (green-blind)
#6F81B0
Tritanopia (blue-blind)
#D44A74
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40b3;
/* rgb */ color: rgb(202, 64, 179);
/* oklch */ color: oklch(60.8% 0.213 335.3);
Tailwind
colors: {
  custom: {
    50: '#de80ca',
    500: '#ca40b3',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b3;
$custom-light: #de80ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b3",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 310,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60766,
    "c": 0.21264,
    "h": 335.3
  },
  "luminance": 0.19478
}

Semantic roles & 50–950 ramp

primary
#CA40B3
secondary
#95D19F
accent
#E06148
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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