#CFABF7#CFABF7

#CFABF7 is a light, moderate violet. Relative luminance 0.491; OKLCH L 80.0% C 0.112 H 305.7°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#CFABF7
RGBrgb(207, 171, 247)
HSLhsl(268, 83%, 82%)
HSVhsv(268, 31%, 97%)
CMYKcmyk(16.2%, 30.8%, 0%, 3.1%)
CIE-LABlab(75.52, 27.37, -32.95)
CIE-LCHlch(75.52, 42.84, 309.72°)
OKLaboklab(79.97% 0.0651 -0.0906)
OKLCHoklch(79.97% 0.112 305.7)
XYZxyz(57.0803, 49.1069, 94.4492)
Luminance0.4911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFABF7 #D3F7AB
analogous
#ABADF7 #CFABF7 #F5ABF7
triadic
#CFABF7 #F7CFAB #ABF7CF
tetradic
#CFABF7 #F7ABAD #D3F7AB #ABF7F5
square
#CFABF7 #F7ABAD #D3F7AB #ABF7F5
split-complementary
#CFABF7 #F7F5AB #ADF7AB
monochromatic
#8F3BEC #AF73F2 #CFABF7 #EFE3FC #EFE3FC

Accessibility & contrast

On white

1.94
#CFABF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.82
#CFABF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFABF7
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFABF7#FFFFFF#000000##000000
##CFABF71.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CB9FA
Deuteranopia (green-blind)
#A3BAF5
Tritanopia (blue-blind)
#C9B6C6
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #cfabf7;
/* rgb */ color: rgb(207, 171, 247);
/* oklch */ color: oklch(80.0% 0.112 305.7);
Tailwind
colors: {
  custom: {
    50: '#dec4fa',
    500: '#cfabf7',
    950: '#000000',
  },
}
SCSS
$custom: #cfabf7;
$custom-light: #dec4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfabf7",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 247
  },
  "hsl": {
    "h": 268.421,
    "s": 82.609,
    "l": 81.961
  },
  "oklch": {
    "l": 0.79969,
    "c": 0.11157,
    "h": 305.7
  },
  "luminance": 0.49107
}

Semantic roles & 50–950 ramp

primary
#CFABF7
secondary
#E6F4D7
accent
#DF0678
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CFABF7

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

Preview Lab → · Contrast checker → · Palette generator →

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