#CF42B3#CF42B3

#CF42B3 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.7% C 0.213 H 336.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CF42B3
RGBrgb(207, 66, 179)
HSLhsl(312, 59%, 54%)
HSVhsv(312, 68%, 81%)
CMYKcmyk(0%, 68.1%, 13.5%, 18.8%)
CIE-LABlab(52.31, 66.72, -30.86)
CIE-LCHlch(52.31, 73.51, 335.17°)
OKLaboklab(61.69% 0.196 -0.0839)
OKLCHoklch(61.69% 0.213 336.8)
XYZxyz(35.8176, 20.4197, 44.6941)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42B3 #42CF5E
analogous
#A442CF #CF42B3 #CF426C
triadic
#CF42B3 #B3CF42 #42B3CF
tetradic
#CF42B3 #CFA442 #42CF5E #426CCF
square
#CF42B3 #CFA442 #42CF5E #426CCF
split-complementary
#CF42B3 #6CCF42 #42CFA4
monochromatic
#781F66 #A92B90 #CF42B3 #DB73C7 #E8A4DA

Accessibility & contrast

On white

4.13
#CF42B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CF42B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42B3
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42B3#FFFFFF#000000##000000
##CF42B31.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#456FB6
Deuteranopia (green-blind)
#7485B0
Tritanopia (blue-blind)
#DA4A75
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf42b3;
/* rgb */ color: rgb(207, 66, 179);
/* oklch */ color: oklch(61.7% 0.213 336.8);
Tailwind
colors: {
  custom: {
    50: '#e181ca',
    500: '#cf42b3',
    950: '#000000',
  },
}
SCSS
$custom: #cf42b3;
$custom-light: #e181ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42b3",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 311.915,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61692,
    "c": 0.2132,
    "h": 336.8
  },
  "luminance": 0.20417
}

Semantic roles & 50–950 ramp

primary
#CF42B3
secondary
#98D5A4
accent
#E36445
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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