#CF98DD#CF98DD

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

Color values

HEX#CF98DD
RGBrgb(207, 152, 221)
HSLhsl(288, 50%, 73%)
HSVhsv(288, 31%, 87%)
CMYKcmyk(6.3%, 31.2%, 0%, 13.3%)
CIE-LABlab(70.14, 32.38, -27.06)
CIE-LCHlch(70.14, 42.20, 320.11°)
OKLaboklab(75.54% 0.0859 -0.0738)
OKLCHoklch(75.54% 0.113 319.3)
XYZxyz(50.0098, 40.9436, 73.6611)
Luminance0.4094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98DD #A6DD98
analogous
#AC98DD #CF98DD #DD98C8
triadic
#CF98DD #DDCF98 #98DDCF
tetradic
#CF98DD #DDAC98 #A6DD98 #98C8DD
square
#CF98DD #DDAC98 #A6DD98 #98C8DD
split-complementary
#CF98DD #C8DD98 #98DDAC
monochromatic
#A33EBC #BA6ACE #CF98DD #E4C6EC #F4E8F7

Accessibility & contrast

On white

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

On black

9.19
#CF98DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98DD
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98DD#FFFFFF#000000##000000
##CF98DD1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A8E0
Deuteranopia (green-blind)
#9CADDB
Tritanopia (blue-blind)
#D0A0B1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf98dd;
/* rgb */ color: rgb(207, 152, 221);
/* oklch */ color: oklch(75.5% 0.113 319.3);
Tailwind
colors: {
  custom: {
    50: '#deb7e7',
    500: '#cf98dd',
    950: '#000000',
  },
}
SCSS
$custom: #cf98dd;
$custom-light: #deb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98dd",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 221
  },
  "hsl": {
    "h": 287.826,
    "s": 50.365,
    "l": 73.137
  },
  "oklch": {
    "l": 0.75538,
    "c": 0.11326,
    "h": 319.3
  },
  "luminance": 0.40942
}

Semantic roles & 50–950 ramp

primary
#CF98DD
secondary
#E0EEDD
accent
#BE2846
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF98DD

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

Preview Lab → · Contrast checker → · Palette generator →

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