#CF98FD#CF98FD

#CF98FD is a light, vivid violet. Relative luminance 0.428; OKLCH L 76.9% C 0.150 H 308.3°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#CF98FD
RGBrgb(207, 152, 253)
HSLhsl(273, 96%, 79%)
HSVhsv(273, 40%, 99%)
CMYKcmyk(18.2%, 39.9%, 0%, 0.8%)
CIE-LABlab(71.43, 39.02, -42.55)
CIE-LCHlch(71.43, 57.73, 312.52°)
OKLaboklab(76.94% 0.0932 -0.118)
OKLCHoklch(76.94% 0.15 308.3)
XYZxyz(54.6866, 42.8143, 98.2925)
Luminance0.4281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98FD #C6FD98
analogous
#9D98FD #CF98FD #FD98F9
triadic
#CF98FD #FDCF98 #98FDCF
tetradic
#CF98FD #FD9D98 #C6FD98 #98F9FD
square
#CF98FD #FD9D98 #C6FD98 #98F9FD
split-complementary
#CF98FD #F9FD98 #98FD9D
monochromatic
#9720FB #B35CFC #CF98FD #EBD4FE #F1E1FE

Accessibility & contrast

On white

2.20
#CF98FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#CF98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98FD
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98FD#FFFFFF#000000##000000
##CF98FD1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf98fd;
/* rgb */ color: rgb(207, 152, 253);
/* oklch */ color: oklch(76.9% 0.150 308.3);
Tailwind
colors: {
  custom: {
    50: '#dfb7fe',
    500: '#cf98fd',
    950: '#000000',
  },
}
SCSS
$custom: #cf98fd;
$custom-light: #dfb7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98fd",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 272.673,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76942,
    "c": 0.15036,
    "h": 308.3
  },
  "luminance": 0.42814
}

Semantic roles & 50–950 ramp

primary
#CF98FD
secondary
#E4F7D4
accent
#E60069
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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