#CF98EE#CF98EE

#CF98EE is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.133 H 312.8°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#CF98EE
RGBrgb(207, 152, 238)
HSLhsl(278, 72%, 76%)
HSVhsv(278, 36%, 93%)
CMYKcmyk(13%, 36.1%, 0%, 6.7%)
CIE-LABlab(70.80, 35.83, -35.36)
CIE-LCHlch(70.80, 50.34, 315.37°)
OKLaboklab(76.26% 0.0901 -0.0974)
OKLCHoklch(76.26% 0.133 312.8)
XYZxyz(52.3904, 41.8958, 86.1992)
Luminance0.4189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98EE #B7EE98
analogous
#A498EE #CF98EE #EE98E2
triadic
#CF98EE #EECF98 #98EECF
tetradic
#CF98EE #EEA498 #B7EE98 #98E2EE
square
#CF98EE #EEA498 #B7EE98 #98E2EE
split-complementary
#CF98EE #E2EE98 #98EEA4
monochromatic
#9E2FDD #B763E5 #CF98EE #E7CDF7 #F3E5FB

Accessibility & contrast

On white

2.24
#CF98EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#CF98EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98EE
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98EE#FFFFFF#000000##000000
##CF98EE1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF1
Deuteranopia (green-blind)
#96AFEB
Tritanopia (blue-blind)
#CCA4B8
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf98ee;
/* rgb */ color: rgb(207, 152, 238);
/* oklch */ color: oklch(76.3% 0.133 312.8);
Tailwind
colors: {
  custom: {
    50: '#dfb7f4',
    500: '#cf98ee',
    950: '#000000',
  },
}
SCSS
$custom: #cf98ee;
$custom-light: #dfb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98ee",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 278.372,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7626,
    "c": 0.13265,
    "h": 312.8
  },
  "luminance": 0.41895
}

Semantic roles & 50–950 ramp

primary
#CF98EE
secondary
#E2F2D9
accent
#D41258
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF98EE

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

Preview Lab → · Contrast checker → · Palette generator →

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