#CF42D5#CF42D5

#CF42D5 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.5% C 0.238 H 326.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#CF42D5
RGBrgb(207, 66, 213)
HSLhsl(298, 64%, 55%)
HSVhsv(298, 69%, 84%)
CMYKcmyk(2.8%, 69%, 0%, 16.5%)
CIE-LABlab(53.99, 72.03, -47.80)
CIE-LCHlch(53.99, 86.44, 326.43°)
OKLaboklab(63.46% 0.1982 -0.1327)
OKLCHoklch(63.46% 0.238 326.2)
XYZxyz(39.6898, 21.9685, 65.0877)
Luminance0.2197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42D5 #48D542
analogous
#8642D5 #CF42D5 #D54292
triadic
#CF42D5 #D5CF42 #42D5CF
tetradic
#CF42D5 #D58642 #48D542 #4292D5
square
#CF42D5 #D58642 #48D542 #4292D5
split-complementary
#CF42D5 #92D542 #42D586
monochromatic
#7C1C80 #AD28B2 #CF42D5 #DC74E0 #E8A6EB

Accessibility & contrast

On white

3.89
#CF42D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#CF42D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42D5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42D5#FFFFFF#000000##000000
##CF42D51.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2276D9
Deuteranopia (green-blind)
#6387D1
Tritanopia (blue-blind)
#D45987
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf42d5;
/* rgb */ color: rgb(207, 66, 213);
/* oklch */ color: oklch(63.5% 0.238 326.2);
Tailwind
colors: {
  custom: {
    50: '#e182e2',
    500: '#cf42d5',
    950: '#000000',
  },
}
SCSS
$custom: #cf42d5;
$custom-light: #e182e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42d5",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 297.551,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63455,
    "c": 0.23849,
    "h": 326.2
  },
  "luminance": 0.21966
}

Semantic roles & 50–950 ramp

primary
#CF42D5
secondary
#9DD89A
accent
#E74148
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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