#CA40B0#CA40B0

#CA40B0 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.6% C 0.211 H 336.3°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CA40B0
RGBrgb(202, 64, 176)
HSLhsl(311, 57%, 52%)
HSVhsv(311, 68%, 79%)
CMYKcmyk(0%, 68.3%, 12.9%, 20.8%)
CIE-LABlab(51.11, 65.78, -31.05)
CIE-LCHlch(51.11, 72.74, 334.73°)
OKLaboklab(60.62% 0.1928 -0.0845)
OKLCHoklch(60.62% 0.211 336.3)
XYZxyz(34.0275, 19.3609, 43.0108)
Luminance0.1936 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B0 #40CA5A
analogous
#9F40CA #CA40B0 #CA406B
triadic
#CA40B0 #B0CA40 #40B0CA
tetradic
#CA40B0 #CA9F40 #40CA5A #406BCA
square
#CA40B0 #CA9F40 #40CA5A #406BCA
split-complementary
#CA40B0 #6BCA40 #40CA9F
monochromatic
#701F61 #A02C8A #CA40B0 #D770C4 #E5A0D8

Accessibility & contrast

On white

4.31
#CA40B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CA40B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B0
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B0#FFFFFF#000000##000000
##CA40B01.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#426CB3
Deuteranopia (green-blind)
#7081AD
Tritanopia (blue-blind)
#D44873
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40b0;
/* rgb */ color: rgb(202, 64, 176);
/* oklch */ color: oklch(60.6% 0.211 336.3);
Tailwind
colors: {
  custom: {
    50: '#de80c8',
    500: '#ca40b0',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b0;
$custom-light: #de80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b0",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 311.304,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.21052,
    "h": 336.3
  },
  "luminance": 0.19358
}

Semantic roles & 50–950 ramp

primary
#CA40B0
secondary
#95D1A0
accent
#E06548
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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