#CB40A4#CB40A4

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

Color values

HEX#CB40A4
RGBrgb(203, 64, 164)
HSLhsl(317, 57%, 52%)
HSVhsv(317, 68%, 80%)
CMYKcmyk(0%, 68.5%, 19.2%, 20.4%)
CIE-LABlab(50.74, 64.32, -24.55)
CIE-LCHlch(50.74, 68.85, 339.11°)
OKLaboklab(60.21% 0.1921 -0.066)
OKLCHoklch(60.21% 0.203 341)
XYZxyz(33.1638, 19.0468, 37.0446)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A4 #40CB67
analogous
#AD40CB #CB40A4 #CB405E
triadic
#CB40A4 #A4CB40 #40A4CB
tetradic
#CB40A4 #CBAD40 #40CB67 #405ECB
square
#CB40A4 #CBAD40 #40CB67 #405ECB
split-complementary
#CB40A4 #5ECB40 #40CBAD
monochromatic
#721F5A #A22C81 #CB40A4 #D870BB #E5A0D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40A4#FFFFFF#000000##000000
##CB40A41.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)
#4A6AA7
Deuteranopia (green-blind)
#7581A1
Tritanopia (blue-blind)
#D7436C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a4;
/* rgb */ color: rgb(203, 64, 164);
/* oklch */ color: oklch(60.2% 0.203 341.0);
Tailwind
colors: {
  custom: {
    50: '#df80bf',
    500: '#cb40a4',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a4;
$custom-light: #df80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a4",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 316.835,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60214,
    "c": 0.20308,
    "h": 341
  },
  "luminance": 0.19044
}

Semantic roles & 50–950 ramp

primary
#CB40A4
secondary
#95D2A6
accent
#E07247
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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