#CFABFF#CFABFF

#CFABFF is a light, vivid violet. Relative luminance 0.496; OKLCH L 80.3% C 0.122 H 303.4°. Best body text is #000000 at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#CFABFF
RGBrgb(207, 171, 255)
HSLhsl(266, 100%, 84%)
HSVhsv(266, 33%, 100%)
CMYKcmyk(18.8%, 32.9%, 0%, 0%)
CIE-LABlab(75.83, 29.11, -36.78)
CIE-LCHlch(75.83, 46.91, 308.36°)
OKLaboklab(80.31% 0.0671 -0.1015)
OKLCHoklch(80.31% 0.122 303.4)
XYZxyz(58.3413, 49.6113, 101.0907)
Luminance0.4961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFABFF #DBFFAB
analogous
#ABB1FF #CFABFF #F9ABFF
triadic
#CFABFF #FFCFAB #ABFFCF
tetradic
#CFABFF #FFABB1 #DBFFAB #ABFFF9
square
#CFABFF #FFABB1 #DBFFAB #ABFFF9
split-complementary
#CFABFF #FFF9AB #B1FFAB
monochromatic
#8931FF #AC6EFF #CFABFF #EEE0FF #EEE0FF

Accessibility & contrast

On white

1.92
#CFABFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.92
#CFABFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFABFF
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFABFF#FFFFFF#000000##000000
##CFABFF1.001.9210.9210.92
#FFFFFF1.921.0021.0021.00
#00000010.9221.001.001.00
##00000010.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99BAFF
Deuteranopia (green-blind)
#A0BBFD
Tritanopia (blue-blind)
#C7B8CA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #cfabff;
/* rgb */ color: rgb(207, 171, 255);
/* oklch */ color: oklch(80.3% 0.122 303.4);
Tailwind
colors: {
  custom: {
    50: '#dec4ff',
    500: '#cfabff',
    950: '#000000',
  },
}
SCSS
$custom: #cfabff;
$custom-light: #dec4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfabff",
  "rgb": {
    "r": 207,
    "g": 171,
    "b": 255
  },
  "hsl": {
    "h": 265.714,
    "s": 100,
    "l": 83.529
  },
  "oklch": {
    "l": 0.8031,
    "c": 0.1217,
    "h": 303.4
  },
  "luminance": 0.49611
}

Semantic roles & 50–950 ramp

primary
#CFABFF
secondary
#E8F7D4
accent
#E60083
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFABFF

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

Preview Lab → · Contrast checker → · Palette generator →

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