#CA40A8#CA40A8

#CA40A8 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.2% C 0.205 H 339.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#CA40A8
RGBrgb(202, 64, 168)
HSLhsl(315, 57%, 52%)
HSVhsv(315, 68%, 79%)
CMYKcmyk(0%, 68.3%, 16.8%, 20.8%)
CIE-LABlab(50.75, 64.62, -26.91)
CIE-LCHlch(50.75, 70.00, 337.40°)
OKLaboklab(60.25% 0.1917 -0.0727)
OKLCHoklch(60.25% 0.205 339.2)
XYZxyz(33.2592, 19.0536, 38.9643)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40A8 #40CA62
analogous
#A740CA #CA40A8 #CA4063
triadic
#CA40A8 #A8CA40 #40A8CA
tetradic
#CA40A8 #CAA740 #40CA62 #4063CA
square
#CA40A8 #CAA740 #40CA62 #4063CA
split-complementary
#CA40A8 #63CA40 #40CAA7
monochromatic
#701F5C #A02C84 #CA40A8 #D770BE #E5A0D4

Accessibility & contrast

On white

4.37
#CA40A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#CA40A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40A8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40A8#FFFFFF#000000##000000
##CA40A81.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#476BAB
Deuteranopia (green-blind)
#7381A5
Tritanopia (blue-blind)
#D5456E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca40a8;
/* rgb */ color: rgb(202, 64, 168);
/* oklch */ color: oklch(60.2% 0.205 339.2);
Tailwind
colors: {
  custom: {
    50: '#de80c2',
    500: '#ca40a8',
    950: '#000000',
  },
}
SCSS
$custom: #ca40a8;
$custom-light: #de80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40a8",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 314.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60245,
    "c": 0.20505,
    "h": 339.2
  },
  "luminance": 0.19051
}

Semantic roles & 50–950 ramp

primary
#CA40A8
secondary
#95D1A4
accent
#E06D48
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CA40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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