#CB40A2#CB40A2

#CB40A2 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.1% C 0.202 H 341.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CB40A2
RGBrgb(203, 64, 162)
HSLhsl(318, 57%, 52%)
HSVhsv(318, 68%, 80%)
CMYKcmyk(0%, 68.5%, 20.2%, 20.4%)
CIE-LABlab(50.66, 64.05, -23.50)
CIE-LCHlch(50.66, 68.22, 339.85°)
OKLaboklab(60.13% 0.1917 -0.063)
OKLCHoklch(60.13% 0.202 341.8)
XYZxyz(32.9846, 18.9751, 36.1008)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A2 #40CB69
analogous
#AF40CB #CB40A2 #CB405C
triadic
#CB40A2 #A2CB40 #40A2CB
tetradic
#CB40A2 #CBAF40 #40CB69 #405CCB
square
#CB40A2 #CBAF40 #40CB69 #405CCB
split-complementary
#CB40A2 #5CCB40 #40CBAF
monochromatic
#721F59 #A22C7F #CB40A2 #D870B9 #E5A0D1

Accessibility & contrast

On white

4.38
#CB40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CB40A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40A2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40A2#FFFFFF#000000##000000
##CB40A21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#76819F
Tritanopia (blue-blind)
#D7426B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a2;
/* rgb */ color: rgb(203, 64, 162);
/* oklch */ color: oklch(60.1% 0.202 341.8);
Tailwind
colors: {
  custom: {
    50: '#df7fbd',
    500: '#cb40a2',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a2;
$custom-light: #df7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a2",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 317.698,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60126,
    "c": 0.2018,
    "h": 341.8
  },
  "luminance": 0.18972
}

Semantic roles & 50–950 ramp

primary
#CB40A2
secondary
#95D2A7
accent
#E07547
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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