#CFA5FF#CFA5FF

#CFA5FF is a light, vivid violet. Relative luminance 0.474; OKLCH L 79.3% C 0.132 H 305.0°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#CFA5FF
RGBrgb(207, 165, 255)
HSLhsl(268, 100%, 82%)
HSVhsv(268, 35%, 100%)
CMYKcmyk(18.8%, 35.3%, 0%, 0%)
CIE-LABlab(74.44, 32.38, -38.94)
CIE-LCHlch(74.44, 50.64, 309.75°)
OKLaboklab(79.25% 0.0755 -0.1077)
OKLCHoklch(79.25% 0.132 305)
XYZxyz(57.2336, 47.3959, 100.7215)
Luminance0.4740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFA5FF #D5FFA5
analogous
#A5A8FF #CFA5FF #FCA5FF
triadic
#CFA5FF #FFCFA5 #A5FFCF
tetradic
#CFA5FF #FFA5A8 #D5FFA5 #A5FFFC
square
#CFA5FF #FFA5A8 #D5FFA5 #A5FFFC
split-complementary
#CFA5FF #FFFCA5 #A8FFA5
monochromatic
#8E2BFF #AE68FF #CFA5FF #EFE0FF #EFE0FF

Accessibility & contrast

On white

2.00
#CFA5FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#CFA5FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFA5FF
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFA5FF#FFFFFF#000000##000000
##CFA5FF1.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#92B6FF
Deuteranopia (green-blind)
#9AB7FC
Tritanopia (blue-blind)
#C8B3C6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cfa5ff;
/* rgb */ color: rgb(207, 165, 255);
/* oklch */ color: oklch(79.3% 0.132 305.0);
Tailwind
colors: {
  custom: {
    50: '#dfc0ff',
    500: '#cfa5ff',
    950: '#000000',
  },
}
SCSS
$custom: #cfa5ff;
$custom-light: #dfc0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cfa5ff",
  "rgb": {
    "r": 207,
    "g": 165,
    "b": 255
  },
  "hsl": {
    "h": 268,
    "s": 100,
    "l": 82.353
  },
  "oklch": {
    "l": 0.79253,
    "c": 0.1315,
    "h": 305
  },
  "luminance": 0.47396
}

Semantic roles & 50–950 ramp

primary
#CFA5FF
secondary
#E7F7D4
accent
#E6007A
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CFA5FF

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

Preview Lab → · Contrast checker → · Palette generator →

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