#CF98DB#CF98DB

#CF98DB is a light, moderate purple. Relative luminance 0.408; OKLCH L 75.5% C 0.111 H 320.3°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#CF98DB
RGBrgb(207, 152, 219)
HSLhsl(289, 48%, 73%)
HSVhsv(289, 31%, 86%)
CMYKcmyk(5.5%, 30.6%, 0%, 14.1%)
CIE-LABlab(70.06, 31.98, -26.07)
CIE-LCHlch(70.06, 41.26, 320.81°)
OKLaboklab(75.46% 0.0854 -0.071)
OKLCHoklch(75.46% 0.111 320.3)
XYZxyz(49.7449, 40.8376, 72.2661)
Luminance0.4084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98DB #A4DB98
analogous
#AE98DB #CF98DB #DB98C5
triadic
#CF98DB #DBCF98 #98DBCF
tetradic
#CF98DB #DBAE98 #A4DB98 #98C5DB
square
#CF98DB #DBAE98 #A4DB98 #98C5DB
split-complementary
#CF98DB #C5DB98 #98DBAE
monochromatic
#A340B8 #BA6BCB #CF98DB #E4C5EB #F4E8F7

Accessibility & contrast

On white

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

On black

9.17
#CF98DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98DB
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98DB#FFFFFF#000000##000000
##CF98DB1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A7DE
Deuteranopia (green-blind)
#9DADD9
Tritanopia (blue-blind)
#D09FB0
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cf98db;
/* rgb */ color: rgb(207, 152, 219);
/* oklch */ color: oklch(75.5% 0.111 320.3);
Tailwind
colors: {
  custom: {
    50: '#deb7e6',
    500: '#cf98db',
    950: '#000000',
  },
}
SCSS
$custom: #cf98db;
$custom-light: #deb7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98db",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 289.254,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75457,
    "c": 0.11106,
    "h": 320.3
  },
  "luminance": 0.40836
}

Semantic roles & 50–950 ramp

primary
#CF98DB
secondary
#E0EEDD
accent
#BB2A44
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF98DB

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

Preview Lab → · Contrast checker → · Palette generator →

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