#CFA7FF#CFA7FF

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

Color values

HEX#CFA7FF
RGBrgb(207, 167, 255)
HSLhsl(267, 100%, 83%)
HSVhsv(267, 35%, 100%)
CMYKcmyk(18.8%, 34.5%, 0%, 0%)
CIE-LABlab(74.90, 31.29, -38.22)
CIE-LCHlch(74.90, 49.40, 309.31°)
OKLaboklab(79.6% 0.0727 -0.1056)
OKLCHoklch(79.6% 0.128 304.5)
XYZxyz(57.5972, 48.1230, 100.8427)
Luminance0.4812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA7FF #D7FFA7
analogous
#A7ABFF #CFA7FF #FBA7FF
triadic
#CFA7FF #FFCFA7 #A7FFCF
tetradic
#CFA7FF #FFA7AB #D7FFA7 #A7FFFB
square
#CFA7FF #FFA7AB #D7FFA7 #A7FFFB
split-complementary
#CFA7FF #FFFBA7 #ABFFA7
monochromatic
#8C2DFF #AE6AFF #CFA7FF #EEE0FF #EEE0FF

Accessibility & contrast

On white

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

On black

10.62
#CFA7FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA7FF
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA7FF#FFFFFF#000000##000000
##CFA7FF1.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfa7ff;
/* rgb */ color: rgb(207, 167, 255);
/* oklch */ color: oklch(79.6% 0.128 304.5);
Tailwind
colors: {
  custom: {
    50: '#dfc1ff',
    500: '#cfa7ff',
    950: '#000000',
  },
}
SCSS
$custom: #cfa7ff;
$custom-light: #dfc1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa7ff",
  "rgb": {
    "r": 207,
    "g": 167,
    "b": 255
  },
  "hsl": {
    "h": 267.273,
    "s": 100,
    "l": 82.745
  },
  "oklch": {
    "l": 0.79603,
    "c": 0.12823,
    "h": 304.5
  },
  "luminance": 0.48123
}

Semantic roles & 50–950 ramp

primary
#CFA7FF
secondary
#E7F7D4
accent
#E6007D
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFA7FF

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

Preview Lab → · Contrast checker → · Palette generator →

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