#CB42B4#CB42B4

#CB42B4 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.211 H 335.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CB42B4
RGBrgb(203, 66, 180)
HSLhsl(310, 57%, 53%)
HSVhsv(310, 67%, 80%)
CMYKcmyk(0%, 67.5%, 11.3%, 20.4%)
CIE-LABlab(51.71, 65.88, -32.42)
CIE-LCHlch(51.71, 73.43, 333.80°)
OKLaboklab(61.15% 0.1921 -0.0884)
OKLCHoklch(61.15% 0.212 335.3)
XYZxyz(34.8154, 19.8912, 45.1769)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B4 #42CB59
analogous
#9D42CB #CB42B4 #CB426F
triadic
#CB42B4 #B4CB42 #42B4CB
tetradic
#CB42B4 #CB9D42 #42CB59 #426FCB
square
#CB42B4 #CB9D42 #42CB59 #426FCB
split-complementary
#CB42B4 #6FCB42 #42CB9D
monochromatic
#732065 #A32D8F #CB42B4 #D872C7 #E5A2DA

Accessibility & contrast

On white

4.22
#CB42B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CB42B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B4#FFFFFF#000000##000000
##CB42B41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#426EB7
Deuteranopia (green-blind)
#7083B1
Tritanopia (blue-blind)
#D54B75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb42b4;
/* rgb */ color: rgb(203, 66, 180);
/* oklch */ color: oklch(61.2% 0.211 335.3);
Tailwind
colors: {
  custom: {
    50: '#de81cb',
    500: '#cb42b4',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b4;
$custom-light: #de81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b4",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 310.073,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61152,
    "c": 0.2115,
    "h": 335.3
  },
  "luminance": 0.19888
}

Semantic roles & 50–950 ramp

primary
#CB42B4
secondary
#97D2A1
accent
#E06148
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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