#CFA7FE#CFA7FE

#CFA7FE is a light, vivid violet. Relative luminance 0.481; OKLCH L 79.6% C 0.127 H 304.8°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#CFA7FE
RGBrgb(207, 167, 254)
HSLhsl(268, 98%, 83%)
HSVhsv(268, 34%, 100%)
CMYKcmyk(18.5%, 34.3%, 0%, 0.4%)
CIE-LABlab(74.86, 31.07, -37.75)
CIE-LCHlch(74.86, 48.89, 309.46°)
OKLaboklab(79.56% 0.0724 -0.1043)
OKLCHoklch(79.56% 0.127 304.8)
XYZxyz(57.4366, 48.0588, 99.9971)
Luminance0.4806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA7FE #D6FEA7
analogous
#A7ABFE #CFA7FE #FAA7FE
triadic
#CFA7FE #FECFA7 #A7FECF
tetradic
#CFA7FE #FEA7AB #D6FEA7 #A7FEFA
square
#CFA7FE #FEA7AB #D6FEA7 #A7FEFA
split-complementary
#CFA7FE #FEFAA7 #ABFEA7
monochromatic
#8D2EFD #AE6AFD #CFA7FE #EEE1FF #EEE1FF

Accessibility & contrast

On white

1.98
#CFA7FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.61
#CFA7FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA7FE
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA7FE#FFFFFF#000000##000000
##CFA7FE1.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B7FF
Deuteranopia (green-blind)
#9DB8FC
Tritanopia (blue-blind)
#C8B4C7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cfa7fe;
/* rgb */ color: rgb(207, 167, 254);
/* oklch */ color: oklch(79.6% 0.127 304.8);
Tailwind
colors: {
  custom: {
    50: '#dfc1ff',
    500: '#cfa7fe',
    950: '#000000',
  },
}
SCSS
$custom: #cfa7fe;
$custom-light: #dfc1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa7fe",
  "rgb": {
    "r": 207,
    "g": 167,
    "b": 254
  },
  "hsl": {
    "h": 267.586,
    "s": 97.753,
    "l": 82.549
  },
  "oklch": {
    "l": 0.79559,
    "c": 0.12697,
    "h": 304.8
  },
  "luminance": 0.48059
}

Semantic roles & 50–950 ramp

primary
#CFA7FE
secondary
#E7F7D4
accent
#E6007C
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFA7FE

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

Preview Lab → · Contrast checker → · Palette generator →

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