#CF98DF#CF98DF

#CF98DF is a light, moderate purple. Relative luminance 0.410; OKLCH L 75.6% C 0.115 H 318.5°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#CF98DF
RGBrgb(207, 152, 223)
HSLhsl(286, 53%, 74%)
HSVhsv(286, 32%, 87%)
CMYKcmyk(7.2%, 31.8%, 0%, 12.5%)
CIE-LABlab(70.21, 32.77, -28.05)
CIE-LCHlch(70.21, 43.13, 319.44°)
OKLaboklab(75.62% 0.0865 -0.0766)
OKLCHoklch(75.62% 0.115 318.5)
XYZxyz(50.2778, 41.0508, 75.0728)
Luminance0.4105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98DF #A8DF98
analogous
#AB98DF #CF98DF #DF98CB
triadic
#CF98DF #DFCF98 #98DFCF
tetradic
#CF98DF #DFAB98 #A8DF98 #98CBDF
square
#CF98DF #DFAB98 #A8DF98 #98CBDF
split-complementary
#CF98DF #CBDF98 #98DFAB
monochromatic
#A33CC1 #B969D0 #CF98DF #E5C7EE #F4E8F8

Accessibility & contrast

On white

2.28
#CF98DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#CF98DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98DF
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98DF#FFFFFF#000000##000000
##CF98DF1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA8E2
Deuteranopia (green-blind)
#9CAEDD
Tritanopia (blue-blind)
#D0A0B2
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cf98df;
/* rgb */ color: rgb(207, 152, 223);
/* oklch */ color: oklch(75.6% 0.115 318.5);
Tailwind
colors: {
  custom: {
    50: '#deb7e9',
    500: '#cf98df',
    950: '#000000',
  },
}
SCSS
$custom: #cf98df;
$custom-light: #deb7e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98df",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 286.479,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.7562,
    "c": 0.11548,
    "h": 318.5
  },
  "luminance": 0.4105
}

Semantic roles & 50–950 ramp

primary
#CF98DF
secondary
#E0EFDC
accent
#C02548
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF98DF

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

Preview Lab → · Contrast checker → · Palette generator →

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