#CFA8FF#CFA8FF

#CFA8FF is a light, vivid violet. Relative luminance 0.485; OKLCH L 79.8% C 0.127 H 304.3°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#CFA8FF
RGBrgb(207, 168, 255)
HSLhsl(267, 100%, 83%)
HSVhsv(267, 34%, 100%)
CMYKcmyk(18.8%, 34.1%, 0%, 0%)
CIE-LABlab(75.13, 30.75, -37.86)
CIE-LCHlch(75.13, 48.78, 309.08°)
OKLaboklab(79.78% 0.0713 -0.1046)
OKLCHoklch(79.78% 0.127 304.3)
XYZxyz(57.7811, 48.4908, 100.9040)
Luminance0.4849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA8FF #D8FFA8
analogous
#A8ACFF #CFA8FF #FBA8FF
triadic
#CFA8FF #FFCFA8 #A8FFCF
tetradic
#CFA8FF #FFA8AC #D8FFA8 #A8FFFB
square
#CFA8FF #FFA8AC #D8FFA8 #A8FFFB
split-complementary
#CFA8FF #FFFBA8 #ACFFA8
monochromatic
#8B2EFF #AD6BFF #CFA8FF #EEE0FF #EEE0FF

Accessibility & contrast

On white

1.96
#CFA8FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#CFA8FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA8FF
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA8FF#FFFFFF#000000##000000
##CFA8FF1.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B8FF
Deuteranopia (green-blind)
#9DB9FD
Tritanopia (blue-blind)
#C8B5C8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfa8ff;
/* rgb */ color: rgb(207, 168, 255);
/* oklch */ color: oklch(79.8% 0.127 304.3);
Tailwind
colors: {
  custom: {
    50: '#dfc2ff',
    500: '#cfa8ff',
    950: '#000000',
  },
}
SCSS
$custom: #cfa8ff;
$custom-light: #dfc2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa8ff",
  "rgb": {
    "r": 207,
    "g": 168,
    "b": 255
  },
  "hsl": {
    "h": 266.897,
    "s": 100,
    "l": 82.941
  },
  "oklch": {
    "l": 0.79779,
    "c": 0.12659,
    "h": 304.3
  },
  "luminance": 0.48491
}

Semantic roles & 50–950 ramp

primary
#CFA8FF
secondary
#E7F7D4
accent
#E6007F
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFA8FF

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

Preview Lab → · Contrast checker → · Palette generator →

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