#CF7DF2#CF7DF2

#CF7DF2 is a light, vivid purple. Relative luminance 0.343; OKLCH L 72.1% C 0.182 H 315.0°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CF7DF2
RGBrgb(207, 125, 242)
HSLhsl(282, 82%, 72%)
HSVhsv(282, 48%, 95%)
CMYKcmyk(14.5%, 48.3%, 0%, 5.1%)
CIE-LABlab(65.24, 51.01, -46.26)
CIE-LCHlch(65.24, 68.86, 317.80°)
OKLaboklab(72.14% 0.1286 -0.1286)
OKLCHoklch(72.14% 0.182 315)
XYZxyz(49.0902, 34.3448, 88.0304)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7DF2 #A0F27D
analogous
#957DF2 #CF7DF2 #F27DDB
triadic
#CF7DF2 #F2CF7D #7DF2CF
tetradic
#CF7DF2 #F2957D #A0F27D #7DDBF2
square
#CF7DF2 #F2957D #A0F27D #7DDBF2
split-complementary
#CF7DF2 #DBF27D #7DF295
monochromatic
#A216DE #BA45EC #CF7DF2 #E4B5F8 #F5E3FC

Accessibility & contrast

On white

2.67
#CF7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CF7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7DF2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7DF2#FFFFFF#000000##000000
##CF7DF21.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6599F6
Deuteranopia (green-blind)
#7CA1EF
Tritanopia (blue-blind)
#CD8FAC
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cf7df2;
/* rgb */ color: rgb(207, 125, 242);
/* oklch */ color: oklch(72.1% 0.182 315.0);
Tailwind
colors: {
  custom: {
    50: '#e0a5f7',
    500: '#cf7df2',
    950: '#000000',
  },
}
SCSS
$custom: #cf7df2;
$custom-light: #e0a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7df2",
  "rgb": {
    "r": 207,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 282.051,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72143,
    "c": 0.18183,
    "h": 315
  },
  "luminance": 0.34343
}

Semantic roles & 50–950 ramp

primary
#CF7DF2
secondary
#E0F4D7
accent
#DE0748
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CF7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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