#CFACF7#CFACF7

#CFACF7 is a light, moderate violet. Relative luminance 0.495; OKLCH L 80.1% C 0.110 H 305.4°. Best body text is #000000 at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#CFACF7
RGBrgb(207, 172, 247)
HSLhsl(268, 82%, 82%)
HSVhsv(268, 30%, 97%)
CMYKcmyk(16.2%, 30.4%, 0%, 3.1%)
CIE-LABlab(75.75, 26.83, -32.59)
CIE-LCHlch(75.75, 42.21, 309.46°)
OKLaboklab(80.15% 0.0637 -0.0896)
OKLCHoklch(80.15% 0.11 305.4)
XYZxyz(57.2699, 49.4861, 94.5124)
Luminance0.4949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFACF7 #D4F7AC
analogous
#ACAFF7 #CFACF7 #F5ACF7
triadic
#CFACF7 #F7CFAC #ACF7CF
tetradic
#CFACF7 #F7ACAF #D4F7AC #ACF7F5
square
#CFACF7 #F7ACAF #D4F7AC #ACF7F5
split-complementary
#CFACF7 #F7F5AC #AFF7AC
monochromatic
#8E3CEC #AF74F2 #CFACF7 #EFE3FC #EFE3FC

Accessibility & contrast

On white

1.93
#CFACF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.90
#CFACF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFACF7
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFACF7#FFFFFF#000000##000000
##CFACF71.001.9310.9010.90
#FFFFFF1.931.0021.0021.00
#00000010.9021.001.001.00
##00000010.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9DBAFA
Deuteranopia (green-blind)
#A4BBF5
Tritanopia (blue-blind)
#C9B7C7
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #cfacf7;
/* rgb */ color: rgb(207, 172, 247);
/* oklch */ color: oklch(80.1% 0.110 305.4);
Tailwind
colors: {
  custom: {
    50: '#dec5fa',
    500: '#cfacf7',
    950: '#000000',
  },
}
SCSS
$custom: #cfacf7;
$custom-light: #dec5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfacf7",
  "rgb": {
    "r": 207,
    "g": 172,
    "b": 247
  },
  "hsl": {
    "h": 268,
    "s": 82.418,
    "l": 82.157
  },
  "oklch": {
    "l": 0.80148,
    "c": 0.10992,
    "h": 305.4
  },
  "luminance": 0.49486
}

Semantic roles & 50–950 ramp

primary
#CFACF7
secondary
#E6F4D7
accent
#DF077A
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CFACF7

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

Preview Lab → · Contrast checker → · Palette generator →

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