#CF9EFE#CF9EFE

#CF9EFE is a light, vivid violet. Relative luminance 0.449; OKLCH L 78.0% C 0.142 H 306.9°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CF9EFE
RGBrgb(207, 158, 254)
HSLhsl(271, 98%, 81%)
HSVhsv(271, 38%, 100%)
CMYKcmyk(18.5%, 37.8%, 0%, 0.4%)
CIE-LABlab(72.81, 35.98, -40.94)
CIE-LCHlch(72.81, 54.50, 311.31°)
OKLaboklab(78% 0.085 -0.1134)
OKLCHoklch(78% 0.142 306.9)
XYZxyz(55.8449, 44.8753, 99.4665)
Luminance0.4487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9EFE #CDFE9E
analogous
#9F9EFE #CF9EFE #FE9EFD
triadic
#CF9EFE #FECF9E #9EFECF
tetradic
#CF9EFE #FE9F9E #CDFE9E #9EFDFE
square
#CF9EFE #FE9F9E #CDFE9E #9EFDFE
split-complementary
#CF9EFE #FDFE9E #9EFE9F
monochromatic
#9325FD #B161FD #CF9EFE #EDDBFF #F0E1FF

Accessibility & contrast

On white

2.11
#CF9EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CF9EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9EFE
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9EFE#FFFFFF#000000##000000
##CF9EFE1.002.119.989.98
#FFFFFF2.111.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89B1FF
Deuteranopia (green-blind)
#94B3FB
Tritanopia (blue-blind)
#C8ADC2
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cf9efe;
/* rgb */ color: rgb(207, 158, 254);
/* oklch */ color: oklch(78.0% 0.142 306.9);
Tailwind
colors: {
  custom: {
    50: '#dfbbff',
    500: '#cf9efe',
    950: '#000000',
  },
}
SCSS
$custom: #cf9efe;
$custom-light: #dfbbff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9efe",
  "rgb": {
    "r": 207,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 270.625,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.78,
    "c": 0.14173,
    "h": 306.9
  },
  "luminance": 0.44875
}

Semantic roles & 50–950 ramp

primary
#CF9EFE
secondary
#E5F7D4
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CF9EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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