#CB42B3#CB42B3

#CB42B3 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.211 H 335.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CB42B3
RGBrgb(203, 66, 179)
HSLhsl(311, 57%, 53%)
HSVhsv(311, 67%, 80%)
CMYKcmyk(0%, 67.5%, 11.8%, 20.4%)
CIE-LABlab(51.67, 65.73, -31.91)
CIE-LCHlch(51.67, 73.07, 334.10°)
OKLaboklab(61.1% 0.192 -0.0869)
OKLCHoklch(61.1% 0.211 335.6)
XYZxyz(34.7139, 19.8506, 44.6423)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B3 #42CB5A
analogous
#9E42CB #CB42B3 #CB426E
triadic
#CB42B3 #B3CB42 #42B3CB
tetradic
#CB42B3 #CB9E42 #42CB5A #426ECB
square
#CB42B3 #CB9E42 #42CB5A #426ECB
split-complementary
#CB42B3 #6ECB42 #42CB9E
monochromatic
#732064 #A32D8E #CB42B3 #D872C6 #E5A2DA

Accessibility & contrast

On white

4.23
#CB42B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CB42B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B3#FFFFFF#000000##000000
##CB42B31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#7083B0
Tritanopia (blue-blind)
#D54B75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb42b3;
/* rgb */ color: rgb(203, 66, 179);
/* oklch */ color: oklch(61.1% 0.211 335.6);
Tailwind
colors: {
  custom: {
    50: '#de81ca',
    500: '#cb42b3',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b3;
$custom-light: #de81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b3",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 310.511,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61104,
    "c": 0.21078,
    "h": 335.6
  },
  "luminance": 0.19848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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