#CB42A8#CB42A8

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

Color values

HEX#CB42A8
RGBrgb(203, 66, 168)
HSLhsl(315, 57%, 53%)
HSVhsv(315, 67%, 80%)
CMYKcmyk(0%, 67.5%, 17.2%, 20.4%)
CIE-LABlab(51.18, 64.13, -26.23)
CIE-LCHlch(51.18, 69.29, 337.76°)
OKLaboklab(60.59% 0.1905 -0.0708)
OKLCHoklch(60.59% 0.203 339.6)
XYZxyz(33.6455, 19.4232, 39.0153)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42A8 #42CB65
analogous
#A942CB #CB42A8 #CB4264
triadic
#CB42A8 #A8CB42 #42A8CB
tetradic
#CB42A8 #CBA942 #42CB65 #4264CB
square
#CB42A8 #CBA942 #42CB65 #4264CB
split-complementary
#CB42A8 #64CB42 #42CBA9
monochromatic
#73205E #A32D85 #CB42A8 #D872BE #E5A2D4

Accessibility & contrast

On white

4.30
#CB42A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB42A8#FFFFFF#000000##000000
##CB42A81.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAB
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#D6466F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb42a8;
/* rgb */ color: rgb(203, 66, 168);
/* oklch */ color: oklch(60.6% 0.203 339.6);
Tailwind
colors: {
  custom: {
    50: '#de81c2',
    500: '#cb42a8',
    950: '#000000',
  },
}
SCSS
$custom: #cb42a8;
$custom-light: #de81c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42a8",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 315.328,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60588,
    "c": 0.20319,
    "h": 339.6
  },
  "luminance": 0.1942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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