#CB42B2#CB42B2

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

Color values

HEX#CB42B2
RGBrgb(203, 66, 178)
HSLhsl(311, 57%, 53%)
HSVhsv(311, 67%, 80%)
CMYKcmyk(0%, 67.5%, 12.3%, 20.4%)
CIE-LABlab(51.62, 65.58, -31.40)
CIE-LCHlch(51.62, 72.71, 334.42°)
OKLaboklab(61.06% 0.1919 -0.0855)
OKLCHoklch(61.06% 0.21 336)
XYZxyz(34.6132, 19.8103, 44.1116)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B2 #42CB5B
analogous
#9F42CB #CB42B2 #CB426D
triadic
#CB42B2 #B2CB42 #42B2CB
tetradic
#CB42B2 #CB9F42 #42CB5B #426DCB
square
#CB42B2 #CB9F42 #42CB5B #426DCB
split-complementary
#CB42B2 #6DCB42 #42CB9F
monochromatic
#732064 #A32D8D #CB42B2 #D872C6 #E5A2D9

Accessibility & contrast

On white

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

On black

4.96
#CB42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B2#FFFFFF#000000##000000
##CB42B21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#7182AF
Tritanopia (blue-blind)
#D54B74
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb42b2;
/* rgb */ color: rgb(203, 66, 178);
/* oklch */ color: oklch(61.1% 0.210 336.0);
Tailwind
colors: {
  custom: {
    50: '#de81c9',
    500: '#cb42b2',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b2;
$custom-light: #de81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b2",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 310.949,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61055,
    "c": 0.21007,
    "h": 336
  },
  "luminance": 0.19807
}

Semantic roles & 50–950 ramp

primary
#CB42B2
secondary
#97D2A2
accent
#E06448
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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