#CF7DFE#CF7DFE

#CF7DFE is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.8% C 0.195 H 311.8°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#CF7DFE
RGBrgb(207, 125, 254)
HSLhsl(278, 98%, 74%)
HSVhsv(278, 51%, 100%)
CMYKcmyk(18.5%, 50.8%, 0%, 0.4%)
CIE-LABlab(65.82, 53.51, -51.93)
CIE-LCHlch(65.82, 74.56, 315.86°)
OKLaboklab(72.77% 0.1299 -0.1451)
OKLCHoklch(72.77% 0.195 311.8)
XYZxyz(50.9520, 35.0895, 97.8356)
Luminance0.3509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7DFE #ACFE7D
analogous
#8F7DFE #CF7DFE #FE7DEC
triadic
#CF7DFE #FECF7D #7DFECF
tetradic
#CF7DFE #FE8F7D #ACFE7D #7DECFE
square
#CF7DFE #FE8F7D #ACFE7D #7DECFE
split-complementary
#CF7DFE #ECFE7D #7DFE8F
monochromatic
#A204FD #B940FE #CF7DFE #E5BAFE #F4E1FF

Accessibility & contrast

On white

2.62
#CF7DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#CF7DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7DFE
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7DFE#FFFFFF#000000##000000
##CF7DFE1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9CFF
Deuteranopia (green-blind)
#76A2FB
Tritanopia (blue-blind)
#CA92B2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cf7dfe;
/* rgb */ color: rgb(207, 125, 254);
/* oklch */ color: oklch(72.8% 0.195 311.8);
Tailwind
colors: {
  custom: {
    50: '#e0a5ff',
    500: '#cf7dfe',
    950: '#000000',
  },
}
SCSS
$custom: #cf7dfe;
$custom-light: #e0a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7dfe",
  "rgb": {
    "r": 207,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 278.14,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72765,
    "c": 0.19469,
    "h": 311.8
  },
  "luminance": 0.35088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF7DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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