#CB40AC#CB40AC

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

Color values

HEX#CB40AC
RGBrgb(203, 64, 172)
HSLhsl(313, 57%, 52%)
HSVhsv(313, 68%, 80%)
CMYKcmyk(0%, 68.5%, 15.3%, 20.4%)
CIE-LABlab(51.09, 65.45, -28.72)
CIE-LCHlch(51.09, 71.47, 336.31°)
OKLaboklab(60.58% 0.1933 -0.0778)
OKLCHoklch(60.58% 0.208 338.1)
XYZxyz(33.9091, 19.3449, 40.9698)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40AC #40CB5F
analogous
#A440CB #CB40AC #CB4067
triadic
#CB40AC #ACCB40 #40ACCB
tetradic
#CB40AC #CBA440 #40CB5F #4067CB
square
#CB40AC #CBA440 #40CB5F #4067CB
split-complementary
#CB40AC #67CB40 #40CBA4
monochromatic
#721F5F #A22C88 #CB40AC #D870C1 #E5A0D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40AC#FFFFFF#000000##000000
##CB40AC1.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)
#466CAF
Deuteranopia (green-blind)
#7281A9
Tritanopia (blue-blind)
#D64671
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb40ac;
/* rgb */ color: rgb(203, 64, 172);
/* oklch */ color: oklch(60.6% 0.208 338.1);
Tailwind
colors: {
  custom: {
    50: '#df80c5',
    500: '#cb40ac',
    950: '#000000',
  },
}
SCSS
$custom: #cb40ac;
$custom-light: #df80c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40ac",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 313.381,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.6058,
    "c": 0.20838,
    "h": 338.1
  },
  "luminance": 0.19342
}

Semantic roles & 50–950 ramp

primary
#CB40AC
secondary
#95D2A3
accent
#E06947
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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