#CF98FF#CF98FF

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

Color values

HEX#CF98FF
RGBrgb(207, 152, 255)
HSLhsl(272, 100%, 80%)
HSVhsv(272, 40%, 100%)
CMYKcmyk(18.8%, 40.4%, 0%, 0%)
CIE-LABlab(71.52, 39.45, -43.50)
CIE-LCHlch(71.52, 58.73, 312.20°)
OKLaboklab(77.04% 0.0935 -0.1208)
OKLCHoklch(77.04% 0.153 307.8)
XYZxyz(55.0069, 42.9424, 99.9793)
Luminance0.4294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98FF #C8FF98
analogous
#9C98FF #CF98FF #FF98FB
triadic
#CF98FF #FFCF98 #98FFCF
tetradic
#CF98FF #FF9C98 #C8FF98 #98FBFF
square
#CF98FF #FF9C98 #C8FF98 #98FBFF
split-complementary
#CF98FF #FBFF98 #98FF9C
monochromatic
#961EFF #B25BFF #CF98FF #ECD5FF #F1E0FF

Accessibility & contrast

On white

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

On black

9.59
#CF98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98FF
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98FF#FFFFFF#000000##000000
##CF98FF1.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ADFF
Deuteranopia (green-blind)
#8EB0FC
Tritanopia (blue-blind)
#C8A8BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf98ff;
/* rgb */ color: rgb(207, 152, 255);
/* oklch */ color: oklch(77.0% 0.153 307.8);
Tailwind
colors: {
  custom: {
    50: '#dfb7ff',
    500: '#cf98ff',
    950: '#000000',
  },
}
SCSS
$custom: #cf98ff;
$custom-light: #dfb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98ff",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 272.039,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.77037,
    "c": 0.15275,
    "h": 307.8
  },
  "luminance": 0.42942
}

Semantic roles & 50–950 ramp

primary
#CF98FF
secondary
#E4F7D4
accent
#E6006B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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