#CF98DC#CF98DC

#CF98DC is a light, moderate purple. Relative luminance 0.409; OKLCH L 75.5% C 0.112 H 319.8°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#CF98DC
RGBrgb(207, 152, 220)
HSLhsl(289, 49%, 73%)
HSVhsv(289, 31%, 86%)
CMYKcmyk(5.9%, 30.9%, 0%, 13.7%)
CIE-LABlab(70.10, 32.18, -26.57)
CIE-LCHlch(70.10, 41.73, 320.46°)
OKLaboklab(75.5% 0.0857 -0.0724)
OKLCHoklch(75.5% 0.112 319.8)
XYZxyz(49.8769, 40.8904, 72.9615)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98DC #A5DC98
analogous
#AD98DC #CF98DC #DC98C7
triadic
#CF98DC #DCCF98 #98DCCF
tetradic
#CF98DC #DCAD98 #A5DC98 #98C7DC
square
#CF98DC #DCAD98 #A5DC98 #98C7DC
split-complementary
#CF98DC #C7DC98 #98DCAD
monochromatic
#A33FBA #BA6ACC #CF98DC #E4C6EC #F4E8F7

Accessibility & contrast

On white

2.29
#CF98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#CF98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98DC
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98DC#FFFFFF#000000##000000
##CF98DC1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A8DF
Deuteranopia (green-blind)
#9DADDA
Tritanopia (blue-blind)
#D09FB1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf98dc;
/* rgb */ color: rgb(207, 152, 220);
/* oklch */ color: oklch(75.5% 0.112 319.8);
Tailwind
colors: {
  custom: {
    50: '#deb7e7',
    500: '#cf98dc',
    950: '#000000',
  },
}
SCSS
$custom: #cf98dc;
$custom-light: #deb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98dc",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 288.529,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.75498,
    "c": 0.11216,
    "h": 319.8
  },
  "luminance": 0.40889
}

Semantic roles & 50–950 ramp

primary
#CF98DC
secondary
#E0EEDD
accent
#BD2945
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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