#CF7AFD#CF7AFD

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

Color values

HEX#CF7AFD
RGBrgb(207, 122, 253)
HSLhsl(279, 97%, 74%)
HSVhsv(279, 52%, 99%)
CMYKcmyk(18.2%, 51.8%, 0%, 0.8%)
CIE-LABlab(65.18, 54.83, -52.39)
CIE-LCHlch(65.18, 75.83, 316.30°)
OKLaboklab(72.28% 0.1337 -0.1464)
OKLCHoklch(72.28% 0.198 312.4)
XYZxyz(50.4182, 34.2775, 96.8697)
Luminance0.3428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFD #A8FD7A
analogous
#8D7AFD #CF7AFD #FD7AEA
triadic
#CF7AFD #FDCF7A #7AFDCF
tetradic
#CF7AFD #FD8D7A #A8FD7A #7AEAFD
square
#CF7AFD #FD8D7A #A8FD7A #7AEAFD
split-complementary
#CF7AFD #EAFD7A #7AFD8D
monochromatic
#A304F9 #B93EFC #CF7AFD #E5B6FE #F4E1FF

Accessibility & contrast

On white

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

On black

7.86
#CF7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFD
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFD#FFFFFF#000000##000000
##CF7AFD1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf7afd;
/* rgb */ color: rgb(207, 122, 253);
/* oklch */ color: oklch(72.3% 0.198 312.4);
Tailwind
colors: {
  custom: {
    50: '#e0a3fe',
    500: '#cf7afd',
    950: '#000000',
  },
}
SCSS
$custom: #cf7afd;
$custom-light: #e0a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7afd",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 278.931,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72279,
    "c": 0.19824,
    "h": 312.4
  },
  "luminance": 0.34276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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