#CB40A6#CB40A6

#CB40A6 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.3% C 0.204 H 340.3°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CB40A6
RGBrgb(203, 64, 166)
HSLhsl(316, 57%, 52%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 68.5%, 18.2%, 20.4%)
CIE-LABlab(50.83, 64.60, -25.60)
CIE-LCHlch(50.83, 69.48, 338.38°)
OKLaboklab(60.3% 0.1924 -0.069)
OKLCHoklch(60.3% 0.204 340.3)
XYZxyz(33.3458, 19.1196, 38.0033)
Luminance0.1912 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A6 #40CB65
analogous
#AA40CB #CB40A6 #CB4061
triadic
#CB40A6 #A6CB40 #40A6CB
tetradic
#CB40A6 #CBAA40 #40CB65 #4061CB
square
#CB40A6 #CBAA40 #40CB65 #4061CB
split-complementary
#CB40A6 #61CB40 #40CBAA
monochromatic
#721F5C #A22C82 #CB40A6 #D870BC #E5A0D3

Accessibility & contrast

On white

4.35
#CB40A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#CB40A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40A6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40A6#FFFFFF#000000##000000
##CB40A61.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#496BA9
Deuteranopia (green-blind)
#7581A3
Tritanopia (blue-blind)
#D7446D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a6;
/* rgb */ color: rgb(203, 64, 166);
/* oklch */ color: oklch(60.3% 0.204 340.3);
Tailwind
colors: {
  custom: {
    50: '#df80c0',
    500: '#cb40a6',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a6;
$custom-light: #df80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a6",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 315.971,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60304,
    "c": 0.20438,
    "h": 340.3
  },
  "luminance": 0.19116
}

Semantic roles & 50–950 ramp

primary
#CB40A6
secondary
#95D2A5
accent
#E07047
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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