#CF42B7#CF42B7

#CF42B7 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 61.9% C 0.216 H 335.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CF42B7
RGBrgb(207, 66, 183)
HSLhsl(310, 59%, 54%)
HSVhsv(310, 68%, 81%)
CMYKcmyk(0%, 68.1%, 11.6%, 18.8%)
CIE-LABlab(52.49, 67.31, -32.91)
CIE-LCHlch(52.49, 74.92, 333.94°)
OKLaboklab(61.88% 0.1965 -0.0897)
OKLCHoklch(61.88% 0.216 335.5)
XYZxyz(36.2280, 20.5838, 46.8556)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42B7 #42CF5A
analogous
#A042CF #CF42B7 #CF4270
triadic
#CF42B7 #B7CF42 #42B7CF
tetradic
#CF42B7 #CFA042 #42CF5A #4270CF
square
#CF42B7 #CFA042 #42CF5A #4270CF
split-complementary
#CF42B7 #70CF42 #42CFA0
monochromatic
#781F69 #A92B93 #CF42B7 #DB73CA #E8A4DC

Accessibility & contrast

On white

4.10
#CF42B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CF42B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42B7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42B7#FFFFFF#000000##000000
##CF42B71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4370BA
Deuteranopia (green-blind)
#7285B4
Tritanopia (blue-blind)
#D94C77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf42b7;
/* rgb */ color: rgb(207, 66, 183);
/* oklch */ color: oklch(61.9% 0.216 335.5);
Tailwind
colors: {
  custom: {
    50: '#e182cd',
    500: '#cf42b7',
    950: '#000000',
  },
}
SCSS
$custom: #cf42b7;
$custom-light: #e182cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42b7",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 310.213,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61884,
    "c": 0.21601,
    "h": 335.5
  },
  "luminance": 0.20581
}

Semantic roles & 50–950 ramp

primary
#CF42B7
secondary
#98D5A2
accent
#E36045
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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