#CF9AF7#CF9AF7

#CF9AF7 is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.0% C 0.140 H 309.6°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#CF9AF7
RGBrgb(207, 154, 247)
HSLhsl(274, 85%, 79%)
HSVhsv(274, 38%, 97%)
CMYKcmyk(16.2%, 37.7%, 0%, 3.1%)
CIE-LABlab(71.62, 36.64, -39.00)
CIE-LCHlch(71.62, 53.51, 313.21°)
OKLaboklab(77% 0.0892 -0.1078)
OKLCHoklch(77% 0.14 309.6)
XYZxyz(54.0732, 43.0927, 93.4468)
Luminance0.4309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9AF7 #C2F79A
analogous
#A09AF7 #CF9AF7 #F79AF0
triadic
#CF9AF7 #F7CF9A #9AF7CF
tetradic
#CF9AF7 #F7A09A #C2F79A #9AF0F7
square
#CF9AF7 #F7A09A #C2F79A #9AF0F7
split-complementary
#CF9AF7 #F0F79A #9AF7A0
monochromatic
#9929EE #B461F3 #CF9AF7 #EAD3FB #F2E3FD

Accessibility & contrast

On white

2.18
#CF9AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#CF9AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9AF7
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9AF7#FFFFFF#000000##000000
##CF9AF71.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88ADFB
Deuteranopia (green-blind)
#94B0F4
Tritanopia (blue-blind)
#CAA8BD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf9af7;
/* rgb */ color: rgb(207, 154, 247);
/* oklch */ color: oklch(77.0% 0.140 309.6);
Tailwind
colors: {
  custom: {
    50: '#dfb8fa',
    500: '#cf9af7',
    950: '#000000',
  },
}
SCSS
$custom: #cf9af7;
$custom-light: #dfb8fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9af7",
  "rgb": {
    "r": 207,
    "g": 154,
    "b": 247
  },
  "hsl": {
    "h": 274.194,
    "s": 85.321,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77001,
    "c": 0.13991,
    "h": 309.6
  },
  "luminance": 0.43092
}

Semantic roles & 50–950 ramp

primary
#CF9AF7
secondary
#E3F5D6
accent
#E20463
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF9AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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