#CF81FE#CF81FE

#CF81FE is a light, vivid violet. Relative luminance 0.361; OKLCH L 73.4% C 0.188 H 311.4°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#CF81FE
RGBrgb(207, 129, 254)
HSLhsl(277, 98%, 75%)
HSVhsv(277, 49%, 100%)
CMYKcmyk(18.5%, 49.2%, 0%, 0.4%)
CIE-LABlab(66.61, 51.45, -50.67)
CIE-LCHlch(66.61, 72.21, 315.44°)
OKLaboklab(73.35% 0.1246 -0.1414)
OKLCHoklch(73.35% 0.188 311.4)
XYZxyz(51.4686, 36.1227, 98.0078)
Luminance0.3612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF81FE #B0FE81
analogous
#9081FE #CF81FE #FE81EE
triadic
#CF81FE #FECF81 #81FECF
tetradic
#CF81FE #FE9081 #B0FE81 #81EEFE
square
#CF81FE #FE9081 #B0FE81 #81EEFE
split-complementary
#CF81FE #EEFE81 #81FE90
monochromatic
#A108FD #B844FE #CF81FE #E6BEFE #F3E1FF

Accessibility & contrast

On white

2.55
#CF81FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#CF81FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF81FE
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF81FE#FFFFFF#000000##000000
##CF81FE1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#629EFF
Deuteranopia (green-blind)
#79A4FB
Tritanopia (blue-blind)
#CA95B4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cf81fe;
/* rgb */ color: rgb(207, 129, 254);
/* oklch */ color: oklch(73.4% 0.188 311.4);
Tailwind
colors: {
  custom: {
    50: '#e0a8ff',
    500: '#cf81fe',
    950: '#000000',
  },
}
SCSS
$custom: #cf81fe;
$custom-light: #e0a8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf81fe",
  "rgb": {
    "r": 207,
    "g": 129,
    "b": 254
  },
  "hsl": {
    "h": 277.44,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73354,
    "c": 0.18847,
    "h": 311.4
  },
  "luminance": 0.36122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF81FE

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

Preview Lab → · Contrast checker → · Palette generator →

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