#CF7AFF#CF7AFF

#CF7AFF is a light, highly saturated violet. Relative luminance 0.344; OKLCH L 72.4% C 0.200 H 311.9°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CF7AFF
RGBrgb(207, 122, 255)
HSLhsl(278, 100%, 74%)
HSVhsv(278, 52%, 100%)
CMYKcmyk(18.8%, 52.2%, 0%, 0%)
CIE-LABlab(65.28, 55.25, -53.32)
CIE-LCHlch(65.28, 76.78, 316.01°)
OKLaboklab(72.39% 0.1338 -0.1491)
OKLCHoklch(72.39% 0.2 311.9)
XYZxyz(50.7385, 34.4056, 98.5565)
Luminance0.3440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFF #AAFF7A
analogous
#8D7AFF #CF7AFF #FF7AED
triadic
#CF7AFF #FFCF7A #7AFFCF
tetradic
#CF7AFF #FF8D7A #AAFF7A #7AEDFF
square
#CF7AFF #FF8D7A #AAFF7A #7AEDFF
split-complementary
#CF7AFF #EDFF7A #7AFF8D
monochromatic
#A300FF #B93DFF #CF7AFF #E5B7FF #F4E0FF

Accessibility & contrast

On white

2.66
#CF7AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#CF7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFF
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFF#FFFFFF#000000##000000
##CF7AFF1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#72A0FC
Tritanopia (blue-blind)
#CA90B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cf7aff;
/* rgb */ color: rgb(207, 122, 255);
/* oklch */ color: oklch(72.4% 0.200 311.9);
Tailwind
colors: {
  custom: {
    50: '#e0a3ff',
    500: '#cf7aff',
    950: '#000000',
  },
}
SCSS
$custom: #cf7aff;
$custom-light: #e0a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7aff",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 278.346,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72386,
    "c": 0.20036,
    "h": 311.9
  },
  "luminance": 0.34404
}

Semantic roles & 50–950 ramp

primary
#CF7AFF
secondary
#E1F7D4
accent
#E60053
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #CF7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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