#CB40A5#CB40A5

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

Color values

HEX#CB40A5
RGBrgb(203, 64, 165)
HSLhsl(316, 57%, 52%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 68.5%, 18.7%, 20.4%)
CIE-LABlab(50.78, 64.46, -25.07)
CIE-LCHlch(50.78, 69.16, 338.75°)
OKLaboklab(60.26% 0.1922 -0.0675)
OKLCHoklch(60.26% 0.204 340.7)
XYZxyz(33.2544, 19.0831, 37.5221)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A5 #40CB66
analogous
#AC40CB #CB40A5 #CB405F
triadic
#CB40A5 #A5CB40 #40A5CB
tetradic
#CB40A5 #CBAC40 #40CB66 #405FCB
square
#CB40A5 #CBAC40 #40CB66 #405FCB
split-complementary
#CB40A5 #5FCB40 #40CBAC
monochromatic
#721F5B #A22C82 #CB40A5 #D870BC #E5A0D2

Accessibility & contrast

On white

4.36
#CB40A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40A5#FFFFFF#000000##000000
##CB40A51.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA8
Deuteranopia (green-blind)
#7581A2
Tritanopia (blue-blind)
#D7436D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a5;
/* rgb */ color: rgb(203, 64, 165);
/* oklch */ color: oklch(60.3% 0.204 340.7);
Tailwind
colors: {
  custom: {
    50: '#df80c0',
    500: '#cb40a5',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a5;
$custom-light: #df80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a5",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 316.403,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60259,
    "c": 0.20372,
    "h": 340.7
  },
  "luminance": 0.1908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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