#CF7AFE#CF7AFE

#CF7AFE is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.3% C 0.199 H 312.2°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CF7AFE
RGBrgb(207, 122, 254)
HSLhsl(279, 99%, 74%)
HSVhsv(279, 52%, 100%)
CMYKcmyk(18.5%, 52%, 0%, 0.4%)
CIE-LABlab(65.23, 55.04, -52.85)
CIE-LCHlch(65.23, 76.31, 316.16°)
OKLaboklab(72.33% 0.1338 -0.1477)
OKLCHoklch(72.33% 0.199 312.2)
XYZxyz(50.5779, 34.3414, 97.7109)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFE #A9FE7A
analogous
#8D7AFE #CF7AFE #FE7AEB
triadic
#CF7AFE #FECF7A #7AFECF
tetradic
#CF7AFE #FE8D7A #A9FE7A #7AEBFE
square
#CF7AFE #FE8D7A #A9FE7A #7AEBFE
split-complementary
#CF7AFE #EBFE7A #7AFE8D
monochromatic
#A302FC #B93DFE #CF7AFE #E5B7FE #F4E1FF

Accessibility & contrast

On white

2.67
#CF7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CF7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFE#FFFFFF#000000##000000
##CF7AFE1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#589AFF
Deuteranopia (green-blind)
#73A0FB
Tritanopia (blue-blind)
#CA90B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cf7afe;
/* rgb */ color: rgb(207, 122, 254);
/* oklch */ color: oklch(72.3% 0.199 312.2);
Tailwind
colors: {
  custom: {
    50: '#e0a3ff',
    500: '#cf7afe',
    950: '#000000',
  },
}
SCSS
$custom: #cf7afe;
$custom-light: #e0a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7afe",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 278.636,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72332,
    "c": 0.1993,
    "h": 312.2
  },
  "luminance": 0.3434
}

Semantic roles & 50–950 ramp

primary
#CF7AFE
secondary
#E0F7D4
accent
#E60052
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #CF7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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