#CF9AFF#CF9AFF

#CF9AFF is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.4% C 0.149 H 307.4°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#CF9AFF
RGBrgb(207, 154, 255)
HSLhsl(271, 100%, 80%)
HSVhsv(271, 40%, 100%)
CMYKcmyk(18.8%, 39.6%, 0%, 0%)
CIE-LABlab(71.96, 38.37, -42.81)
CIE-LCHlch(71.96, 57.49, 311.87°)
OKLaboklab(77.37% 0.0908 -0.1188)
OKLCHoklch(77.37% 0.149 307.4)
XYZxyz(55.3342, 43.5971, 100.0884)
Luminance0.4360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9AFF #CAFF9A
analogous
#9C9AFF #CF9AFF #FF9AFD
triadic
#CF9AFF #FFCF9A #9AFFCF
tetradic
#CF9AFF #FF9C9A #CAFF9A #9AFDFF
square
#CF9AFF #FF9C9A #CAFF9A #9AFDFF
split-complementary
#CF9AFF #FDFF9A #9AFF9C
monochromatic
#9520FF #B25DFF #CF9AFF #ECD7FF #F0E0FF

Accessibility & contrast

On white

2.16
#CF9AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#CF9AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9AFF
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9AFF#FFFFFF#000000##000000
##CF9AFF1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AEFF
Deuteranopia (green-blind)
#90B1FC
Tritanopia (blue-blind)
#C8AAC1
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cf9aff;
/* rgb */ color: rgb(207, 154, 255);
/* oklch */ color: oklch(77.4% 0.149 307.4);
Tailwind
colors: {
  custom: {
    50: '#dfb8ff',
    500: '#cf9aff',
    950: '#000000',
  },
}
SCSS
$custom: #cf9aff;
$custom-light: #dfb8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9aff",
  "rgb": {
    "r": 207,
    "g": 154,
    "b": 255
  },
  "hsl": {
    "h": 271.485,
    "s": 100,
    "l": 80.196
  },
  "oklch": {
    "l": 0.7737,
    "c": 0.14949,
    "h": 307.4
  },
  "luminance": 0.43597
}

Semantic roles & 50–950 ramp

primary
#CF9AFF
secondary
#E5F7D4
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CF9AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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