#CF8AFE#CF8AFE

#CF8AFE is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.7% C 0.174 H 310.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#CF8AFE
RGBrgb(207, 138, 254)
HSLhsl(276, 98%, 77%)
HSVhsv(276, 46%, 100%)
CMYKcmyk(18.5%, 45.7%, 0%, 0.4%)
CIE-LABlab(68.46, 46.73, -47.76)
CIE-LCHlch(68.46, 66.82, 314.38°)
OKLaboklab(74.73% 0.1125 -0.133)
OKLCHoklch(74.73% 0.174 310.2)
XYZxyz(52.7067, 38.5990, 98.4205)
Luminance0.3860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8AFE #B9FE8A
analogous
#958AFE #CF8AFE #FE8AF3
triadic
#CF8AFE #FECF8A #8AFECF
tetradic
#CF8AFE #FE958A #B9FE8A #8AF3FE
square
#CF8AFE #FE958A #B9FE8A #8AF3FE
split-complementary
#CF8AFE #F3FE8A #8AFE95
monochromatic
#9D11FD #B64DFD #CF8AFE #E8C7FF #F3E1FF

Accessibility & contrast

On white

2.41
#CF8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#CF8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8AFE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8AFE#FFFFFF#000000##000000
##CF8AFE1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA4FF
Deuteranopia (green-blind)
#82A8FB
Tritanopia (blue-blind)
#C99CB8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cf8afe;
/* rgb */ color: rgb(207, 138, 254);
/* oklch */ color: oklch(74.7% 0.174 310.2);
Tailwind
colors: {
  custom: {
    50: '#e0aeff',
    500: '#cf8afe',
    950: '#000000',
  },
}
SCSS
$custom: #cf8afe;
$custom-light: #e0aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8afe",
  "rgb": {
    "r": 207,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 275.69,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74728,
    "c": 0.17423,
    "h": 310.2
  },
  "luminance": 0.38598
}

Semantic roles & 50–950 ramp

primary
#CF8AFE
secondary
#E2F7D4
accent
#E6005D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CF8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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