#CF98FE#CF98FE

#CF98FE is a light, vivid violet. Relative luminance 0.429; OKLCH L 77.0% C 0.152 H 308.0°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#CF98FE
RGBrgb(207, 152, 254)
HSLhsl(272, 98%, 80%)
HSVhsv(272, 40%, 100%)
CMYKcmyk(18.5%, 40.2%, 0%, 0.4%)
CIE-LABlab(71.47, 39.23, -43.03)
CIE-LCHlch(71.47, 58.23, 312.36°)
OKLaboklab(76.99% 0.0933 -0.1194)
OKLCHoklch(76.99% 0.152 308)
XYZxyz(54.8463, 42.8782, 99.1337)
Luminance0.4288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98FE #C7FE98
analogous
#9C98FE #CF98FE #FE98FA
triadic
#CF98FE #FECF98 #98FECF
tetradic
#CF98FE #FE9C98 #C7FE98 #98FAFE
square
#CF98FE #FE9C98 #C7FE98 #98FAFE
split-complementary
#CF98FE #FAFE98 #98FE9C
monochromatic
#971FFD #B35BFD #CF98FE #EBD5FF #F1E1FF

Accessibility & contrast

On white

2.19
#CF98FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#CF98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98FE
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98FE#FFFFFF#000000##000000
##CF98FE1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#8FB0FB
Tritanopia (blue-blind)
#C9A8BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf98fe;
/* rgb */ color: rgb(207, 152, 254);
/* oklch */ color: oklch(77.0% 0.152 308.0);
Tailwind
colors: {
  custom: {
    50: '#dfb7ff',
    500: '#cf98fe',
    950: '#000000',
  },
}
SCSS
$custom: #cf98fe;
$custom-light: #dfb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98fe",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 272.353,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76989,
    "c": 0.15155,
    "h": 308
  },
  "luminance": 0.42878
}

Semantic roles & 50–950 ramp

primary
#CF98FE
secondary
#E4F7D4
accent
#E6006A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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