#CF81FC#CF81FC

#CF81FC is a light, vivid violet. Relative luminance 0.360; OKLCH L 73.3% C 0.186 H 311.9°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#CF81FC
RGBrgb(207, 129, 252)
HSLhsl(278, 95%, 75%)
HSVhsv(278, 49%, 99%)
CMYKcmyk(17.9%, 48.8%, 0%, 1.2%)
CIE-LABlab(66.52, 51.02, -49.73)
CIE-LCHlch(66.52, 71.25, 315.74°)
OKLaboklab(73.25% 0.1244 -0.1387)
OKLCHoklch(73.25% 0.186 311.9)
XYZxyz(51.1500, 35.9953, 96.3298)
Luminance0.3599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF81FC #AEFC81
analogous
#9281FC #CF81FC #FC81EB
triadic
#CF81FC #FCCF81 #81FCCF
tetradic
#CF81FC #FC9281 #AEFC81 #81EBFC
square
#CF81FC #FC9281 #AEFC81 #81EBFC
split-complementary
#CF81FC #EBFC81 #81FC92
monochromatic
#A109F9 #B845FB #CF81FC #E6BDFD #F4E1FE

Accessibility & contrast

On white

2.56
#CF81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#CF81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF81FC
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF81FC#FFFFFF#000000##000000
##CF81FC1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#7AA3F9
Tritanopia (blue-blind)
#CA95B3
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cf81fc;
/* rgb */ color: rgb(207, 129, 252);
/* oklch */ color: oklch(73.3% 0.186 311.9);
Tailwind
colors: {
  custom: {
    50: '#e0a8fe',
    500: '#cf81fc',
    950: '#000000',
  },
}
SCSS
$custom: #cf81fc;
$custom-light: #e0a8fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cf81fc",
  "rgb": {
    "r": 207,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 278.049,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.7325,
    "c": 0.18629,
    "h": 311.9
  },
  "luminance": 0.35994
}

Semantic roles & 50–950 ramp

primary
#CF81FC
secondary
#E1F7D4
accent
#E60054
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151018
muted
#847F86

Preview Lab

Preview with #CF81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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