#CB42A7#CB42A7

#CB42A7 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.5% C 0.203 H 340.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CB42A7
RGBrgb(203, 66, 167)
HSLhsl(316, 57%, 53%)
HSVhsv(316, 67%, 80%)
CMYKcmyk(0%, 67.5%, 17.7%, 20.4%)
CIE-LABlab(51.14, 63.99, -25.71)
CIE-LCHlch(51.14, 68.96, 338.11°)
OKLaboklab(60.54% 0.1903 -0.0693)
OKLCHoklch(60.54% 0.203 340)
XYZxyz(33.5527, 19.3861, 38.5265)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42A7 #42CB66
analogous
#AA42CB #CB42A7 #CB4263
triadic
#CB42A7 #A7CB42 #42A7CB
tetradic
#CB42A7 #CBAA42 #42CB66 #4263CB
square
#CB42A7 #CBAA42 #42CB66 #4263CB
split-complementary
#CB42A7 #63CB42 #42CBAA
monochromatic
#73205D #A32D84 #CB42A7 #D872BD #E5A2D4

Accessibility & contrast

On white

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

On black

4.88
#CB42A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42A7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42A7#FFFFFF#000000##000000
##CB42A71.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAA
Deuteranopia (green-blind)
#7582A4
Tritanopia (blue-blind)
#D7466F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb42a7;
/* rgb */ color: rgb(203, 66, 167);
/* oklch */ color: oklch(60.5% 0.203 340.0);
Tailwind
colors: {
  custom: {
    50: '#de81c1',
    500: '#cb42a7',
    950: '#000000',
  },
}
SCSS
$custom: #cb42a7;
$custom-light: #de81c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42a7",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 315.766,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.20253,
    "h": 340
  },
  "luminance": 0.19383
}

Semantic roles & 50–950 ramp

primary
#CB42A7
secondary
#97D2A6
accent
#E07048
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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