#CF42CB#CF42CB

#CF42CB is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 62.9% C 0.231 H 329.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#CF42CB
RGBrgb(207, 66, 203)
HSLhsl(302, 59%, 54%)
HSVhsv(302, 68%, 81%)
CMYKcmyk(0%, 68.1%, 1.9%, 18.8%)
CIE-LABlab(53.47, 70.39, -42.92)
CIE-LCHlch(53.47, 82.45, 328.63°)
OKLaboklab(62.91% 0.198 -0.1185)
OKLCHoklch(62.91% 0.231 329.1)
XYZxyz(38.4595, 21.4764, 58.6081)
Luminance0.2147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42CB #42CF46
analogous
#8C42CF #CF42CB #CF4284
triadic
#CF42CB #CBCF42 #42CBCF
tetradic
#CF42CB #CF8C42 #42CF46 #4284CF
square
#CF42CB #CF8C42 #42CF46 #4284CF
split-complementary
#CF42CB #84CF42 #42CF8C
monochromatic
#781F76 #A92BA5 #CF42CB #DB73D8 #E8A4E6

Accessibility & contrast

On white

3.97
#CF42CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#CF42CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42CB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42CB#FFFFFF#000000##000000
##CF42CB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3074CF
Deuteranopia (green-blind)
#6986C7
Tritanopia (blue-blind)
#D65582
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf42cb;
/* rgb */ color: rgb(207, 66, 203);
/* oklch */ color: oklch(62.9% 0.231 329.1);
Tailwind
colors: {
  custom: {
    50: '#e182db',
    500: '#cf42cb',
    950: '#000000',
  },
}
SCSS
$custom: #cf42cb;
$custom-light: #e182db;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42cb",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 301.702,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62906,
    "c": 0.23074,
    "h": 329.1
  },
  "luminance": 0.21474
}

Semantic roles & 50–950 ramp

primary
#CF42CB
secondary
#98D59A
accent
#E34A45
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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