#CF7AFC#CF7AFC

#CF7AFC is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.2% C 0.197 H 312.6°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CF7AFC
RGBrgb(207, 122, 252)
HSLhsl(279, 96%, 73%)
HSVhsv(279, 52%, 99%)
CMYKcmyk(17.9%, 51.6%, 0%, 1.2%)
CIE-LABlab(65.13, 54.62, -51.92)
CIE-LCHlch(65.13, 75.36, 316.45°)
OKLaboklab(72.23% 0.1336 -0.145)
OKLCHoklch(72.23% 0.197 312.6)
XYZxyz(50.2593, 34.2139, 96.0330)
Luminance0.3421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFC #A7FC7A
analogous
#8E7AFC #CF7AFC #FC7AE8
triadic
#CF7AFC #FCCF7A #7AFCCF
tetradic
#CF7AFC #FC8E7A #A7FC7A #7AE8FC
square
#CF7AFC #FC8E7A #A7FC7A #7AE8FC
split-complementary
#CF7AFC #E8FC7A #7AFC8E
monochromatic
#A306F6 #B93EFB #CF7AFC #E5B6FD #F4E1FE

Accessibility & contrast

On white

2.68
#CF7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CF7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFC#FFFFFF#000000##000000
##CF7AFC1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#74A0F9
Tritanopia (blue-blind)
#CB8FB0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cf7afc;
/* rgb */ color: rgb(207, 122, 252);
/* oklch */ color: oklch(72.2% 0.197 312.6);
Tailwind
colors: {
  custom: {
    50: '#e0a3fe',
    500: '#cf7afc',
    950: '#000000',
  },
}
SCSS
$custom: #cf7afc;
$custom-light: #e0a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7afc",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 279.231,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72226,
    "c": 0.19717,
    "h": 312.6
  },
  "luminance": 0.34213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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