#CFA2FE#CFA2FE

#CFA2FE is a light, vivid violet. Relative luminance 0.463; OKLCH L 78.7% C 0.135 H 306.0°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#CFA2FE
RGBrgb(207, 162, 254)
HSLhsl(269, 98%, 82%)
HSVhsv(269, 36%, 100%)
CMYKcmyk(18.5%, 36.2%, 0%, 0.4%)
CIE-LABlab(73.72, 33.80, -39.53)
CIE-LCHlch(73.72, 52.01, 310.53°)
OKLaboklab(78.69% 0.0794 -0.1094)
OKLCHoklch(78.69% 0.135 306)
XYZxyz(56.5383, 46.2622, 99.6977)
Luminance0.4626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA2FE #D1FEA2
analogous
#A2A3FE #CFA2FE #FDA2FE
triadic
#CFA2FE #FECFA2 #A2FECF
tetradic
#CFA2FE #FEA2A3 #D1FEA2 #A2FEFD
square
#CFA2FE #FEA2A3 #D1FEA2 #A2FEFD
split-complementary
#CFA2FE #FEFDA2 #A3FEA2
monochromatic
#9029FD #B065FD #CFA2FE #EEDFFF #EFE1FF

Accessibility & contrast

On white

2.05
#CFA2FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#CFA2FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA2FE
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA2FE#FFFFFF#000000##000000
##CFA2FE1.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB4FF
Deuteranopia (green-blind)
#98B5FB
Tritanopia (blue-blind)
#C8B0C4
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cfa2fe;
/* rgb */ color: rgb(207, 162, 254);
/* oklch */ color: oklch(78.7% 0.135 306.0);
Tailwind
colors: {
  custom: {
    50: '#dfbeff',
    500: '#cfa2fe',
    950: '#000000',
  },
}
SCSS
$custom: #cfa2fe;
$custom-light: #dfbeff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa2fe",
  "rgb": {
    "r": 207,
    "g": 162,
    "b": 254
  },
  "hsl": {
    "h": 269.348,
    "s": 97.872,
    "l": 81.569
  },
  "oklch": {
    "l": 0.78687,
    "c": 0.13517,
    "h": 306
  },
  "luminance": 0.46262
}

Semantic roles & 50–950 ramp

primary
#CFA2FE
secondary
#E6F7D4
accent
#E60075
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFA2FE

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

Preview Lab → · Contrast checker → · Palette generator →

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