#CF7AF7#CF7AF7

#CF7AF7 is a light, vivid purple. Relative luminance 0.339; OKLCH L 72.0% C 0.192 H 313.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CF7AF7
RGBrgb(207, 122, 247)
HSLhsl(281, 89%, 72%)
HSVhsv(281, 51%, 97%)
CMYKcmyk(16.2%, 50.6%, 0%, 3.1%)
CIE-LABlab(64.88, 53.58, -49.56)
CIE-LCHlch(64.88, 72.99, 317.23°)
OKLaboklab(71.96% 0.1331 -0.1382)
OKLCHoklch(71.96% 0.192 313.9)
XYZxyz(49.4774, 33.9012, 91.9149)
Luminance0.3390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AF7 #A2F77A
analogous
#917AF7 #CF7AF7 #F77AE0
triadic
#CF7AF7 #F7CF7A #7AF7CF
tetradic
#CF7AF7 #F7917A #A2F77A #7AE0F7
square
#CF7AF7 #F7917A #A2F77A #7AE0F7
split-complementary
#CF7AF7 #E0F77A #7AF791
monochromatic
#A30EE9 #BA40F4 #CF7AF7 #E4B4FA #F5E2FD

Accessibility & contrast

On white

2.70
#CF7AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CF7AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AF7
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AF7#FFFFFF#000000##000000
##CF7AF71.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D99FB
Deuteranopia (green-blind)
#77A0F4
Tritanopia (blue-blind)
#CC8EAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cf7af7;
/* rgb */ color: rgb(207, 122, 247);
/* oklch */ color: oklch(72.0% 0.192 313.9);
Tailwind
colors: {
  custom: {
    50: '#e0a3fa',
    500: '#cf7af7',
    950: '#000000',
  },
}
SCSS
$custom: #cf7af7;
$custom-light: #e0a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7af7",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 280.8,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71962,
    "c": 0.19187,
    "h": 313.9
  },
  "luminance": 0.339
}

Semantic roles & 50–950 ramp

primary
#CF7AF7
secondary
#E0F5D6
accent
#E5004A
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F17
muted
#847F85

Preview Lab

Preview with #CF7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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