#CB42AC#CB42AC

#CB42AC is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.206 H 338.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CB42AC
RGBrgb(203, 66, 172)
HSLhsl(314, 57%, 53%)
HSVhsv(314, 67%, 80%)
CMYKcmyk(0%, 67.5%, 15.3%, 20.4%)
CIE-LABlab(51.35, 64.71, -28.31)
CIE-LCHlch(51.35, 70.63, 336.37°)
OKLaboklab(60.77% 0.1911 -0.0767)
OKLCHoklch(60.77% 0.206 338.1)
XYZxyz(34.0239, 19.5746, 41.0081)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42AC #42CB61
analogous
#A642CB #CB42AC #CB4267
triadic
#CB42AC #ACCB42 #42ACCB
tetradic
#CB42AC #CBA642 #42CB61 #4267CB
square
#CB42AC #CBA642 #42CB61 #4267CB
split-complementary
#CB42AC #67CB42 #42CBA6
monochromatic
#732060 #A32D88 #CB42AC #D872C1 #E5A2D6

Accessibility & contrast

On white

4.27
#CB42AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CB42AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42AC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42AC#FFFFFF#000000##000000
##CB42AC1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#476DAF
Deuteranopia (green-blind)
#7382A9
Tritanopia (blue-blind)
#D64871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb42ac;
/* rgb */ color: rgb(203, 66, 172);
/* oklch */ color: oklch(60.8% 0.206 338.1);
Tailwind
colors: {
  custom: {
    50: '#de81c5',
    500: '#cb42ac',
    950: '#000000',
  },
}
SCSS
$custom: #cb42ac;
$custom-light: #de81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42ac",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 313.577,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60772,
    "c": 0.20589,
    "h": 338.1
  },
  "luminance": 0.19571
}

Semantic roles & 50–950 ramp

primary
#CB42AC
secondary
#97D2A4
accent
#E06A48
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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