#CF98EF#CF98EF

#CF98EF is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.3% C 0.134 H 312.4°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#CF98EF
RGBrgb(207, 152, 239)
HSLhsl(278, 73%, 77%)
HSVhsv(278, 36%, 94%)
CMYKcmyk(13.4%, 36.4%, 0%, 6.3%)
CIE-LABlab(70.84, 36.03, -35.85)
CIE-LCHlch(70.84, 50.83, 315.15°)
OKLaboklab(76.3% 0.0903 -0.0988)
OKLCHoklch(76.3% 0.134 312.4)
XYZxyz(52.5377, 41.9548, 86.9750)
Luminance0.4195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98EF #B8EF98
analogous
#A498EF #CF98EF #EF98E4
triadic
#CF98EF #EFCF98 #98EFCF
tetradic
#CF98EF #EFA498 #B8EF98 #98E4EF
square
#CF98EF #EFA498 #B8EF98 #98E4EF
split-complementary
#CF98EF #E4EF98 #98EFA4
monochromatic
#9E2EDF #B663E7 #CF98EF #E8CDF7 #F3E5FB

Accessibility & contrast

On white

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

On black

9.39
#CF98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98EF
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98EF#FFFFFF#000000##000000
##CF98EF1.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF2
Deuteranopia (green-blind)
#95AFEC
Tritanopia (blue-blind)
#CCA4B9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf98ef;
/* rgb */ color: rgb(207, 152, 239);
/* oklch */ color: oklch(76.3% 0.134 312.4);
Tailwind
colors: {
  custom: {
    50: '#dfb7f4',
    500: '#cf98ef',
    950: '#000000',
  },
}
SCSS
$custom: #cf98ef;
$custom-light: #dfb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98ef",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 277.931,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.76304,
    "c": 0.13382,
    "h": 312.4
  },
  "luminance": 0.41954
}

Semantic roles & 50–950 ramp

primary
#CF98EF
secondary
#E2F3D8
accent
#D51059
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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