#CF98EC#CF98EC

#CF98EC is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.2% C 0.130 H 313.4°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CF98EC
RGBrgb(207, 152, 236)
HSLhsl(279, 69%, 76%)
HSVhsv(279, 36%, 93%)
CMYKcmyk(12.3%, 35.6%, 0%, 7.5%)
CIE-LABlab(70.72, 35.41, -34.39)
CIE-LCHlch(70.72, 49.37, 315.83°)
OKLaboklab(76.17% 0.0896 -0.0946)
OKLCHoklch(76.17% 0.13 313.4)
XYZxyz(52.0982, 41.7790, 84.6603)
Luminance0.4178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98EC #B5EC98
analogous
#A598EC #CF98EC #EC98DF
triadic
#CF98EC #ECCF98 #98ECCF
tetradic
#CF98EC #ECA598 #B5EC98 #98DFEC
square
#CF98EC #ECA598 #B5EC98 #98DFEC
split-complementary
#CF98EC #DFEC98 #98ECA5
monochromatic
#9F31D9 #B764E2 #CF98EC #E7CCF6 #F3E5FA

Accessibility & contrast

On white

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

On black

9.36
#CF98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98EC
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98EC#FFFFFF#000000##000000
##CF98EC1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAAEF
Deuteranopia (green-blind)
#97AEE9
Tritanopia (blue-blind)
#CDA3B7
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf98ec;
/* rgb */ color: rgb(207, 152, 236);
/* oklch */ color: oklch(76.2% 0.130 313.4);
Tailwind
colors: {
  custom: {
    50: '#dfb7f2',
    500: '#cf98ec',
    950: '#000000',
  },
}
SCSS
$custom: #cf98ec;
$custom-light: #dfb7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98ec",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 279.286,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.76172,
    "c": 0.13032,
    "h": 313.4
  },
  "luminance": 0.41778
}

Semantic roles & 50–950 ramp

primary
#CF98EC
secondary
#E2F2D9
accent
#D11556
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CF98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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