#CFA7FC#CFA7FC

#CFA7FC is a light, vivid violet. Relative luminance 0.479; OKLCH L 79.5% C 0.124 H 305.3°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#CFA7FC
RGBrgb(207, 167, 252)
HSLhsl(268, 93%, 82%)
HSVhsv(268, 34%, 99%)
CMYKcmyk(17.9%, 33.7%, 0%, 1.2%)
CIE-LABlab(74.78, 30.64, -36.79)
CIE-LCHlch(74.78, 47.88, 309.79°)
OKLaboklab(79.47% 0.072 -0.1015)
OKLCHoklch(79.47% 0.124 305.3)
XYZxyz(57.1180, 47.9314, 98.3192)
Luminance0.4793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA7FC #D4FCA7
analogous
#A7AAFC #CFA7FC #F9A7FC
triadic
#CFA7FC #FCCFA7 #A7FCCF
tetradic
#CFA7FC #FCA7AA #D4FCA7 #A7FCF9
square
#CFA7FC #FCA7AA #D4FCA7 #A7FCF9
split-complementary
#CFA7FC #FCF9A7 #AAFCA7
monochromatic
#8E31F8 #AF6CFA #CFA7FC #EFE1FE #EFE1FE

Accessibility & contrast

On white

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

On black

10.59
#CFA7FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA7FC
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA7FC#FFFFFF#000000##000000
##CFA7FC1.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B7FF
Deuteranopia (green-blind)
#9EB8FA
Tritanopia (blue-blind)
#C8B4C6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cfa7fc;
/* rgb */ color: rgb(207, 167, 252);
/* oklch */ color: oklch(79.5% 0.124 305.3);
Tailwind
colors: {
  custom: {
    50: '#dec1fd',
    500: '#cfa7fc',
    950: '#000000',
  },
}
SCSS
$custom: #cfa7fc;
$custom-light: #dec1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa7fc",
  "rgb": {
    "r": 207,
    "g": 167,
    "b": 252
  },
  "hsl": {
    "h": 268.235,
    "s": 93.407,
    "l": 82.157
  },
  "oklch": {
    "l": 0.79471,
    "c": 0.12447,
    "h": 305.3
  },
  "luminance": 0.47931
}

Semantic roles & 50–950 ramp

primary
#CFA7FC
secondary
#E6F6D5
accent
#E6007A
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CFA7FC

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

Preview Lab → · Contrast checker → · Palette generator →

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