#CF98FC#CF98FC

#CF98FC is a light, vivid violet. Relative luminance 0.427; OKLCH L 76.9% C 0.149 H 308.5°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#CF98FC
RGBrgb(207, 152, 252)
HSLhsl(273, 94%, 79%)
HSVhsv(273, 40%, 99%)
CMYKcmyk(17.9%, 39.7%, 0%, 1.2%)
CIE-LABlab(71.39, 38.80, -42.08)
CIE-LCHlch(71.39, 57.24, 312.68°)
OKLaboklab(76.9% 0.093 -0.1167)
OKLCHoklch(76.9% 0.149 308.5)
XYZxyz(54.5277, 42.7508, 97.4558)
Luminance0.4275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98FC #C5FC98
analogous
#9D98FC #CF98FC #FC98F7
triadic
#CF98FC #FCCF98 #98FCCF
tetradic
#CF98FC #FC9D98 #C5FC98 #98F7FC
square
#CF98FC #FC9D98 #C5FC98 #98F7FC
split-complementary
#CF98FC #F7FC98 #98FC9D
monochromatic
#9821F9 #B35DFA #CF98FC #EBD3FE #F1E1FE

Accessibility & contrast

On white

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

On black

9.55
#CF98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98FC
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98FC#FFFFFF#000000##000000
##CF98FC1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFF
Deuteranopia (green-blind)
#90B0F9
Tritanopia (blue-blind)
#C9A7BE
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf98fc;
/* rgb */ color: rgb(207, 152, 252);
/* oklch */ color: oklch(76.9% 0.149 308.5);
Tailwind
colors: {
  custom: {
    50: '#dfb7fd',
    500: '#cf98fc',
    950: '#000000',
  },
}
SCSS
$custom: #cf98fc;
$custom-light: #dfb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98fc",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 273,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76896,
    "c": 0.14917,
    "h": 308.5
  },
  "luminance": 0.4275
}

Semantic roles & 50–950 ramp

primary
#CF98FC
secondary
#E4F6D5
accent
#E60067
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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