#CF81FA#CF81FA

#CF81FA is a light, vivid violet. Relative luminance 0.359; OKLCH L 73.1% C 0.184 H 312.4°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#CF81FA
RGBrgb(207, 129, 250)
HSLhsl(279, 92%, 74%)
HSVhsv(279, 48%, 98%)
CMYKcmyk(17.2%, 48.4%, 0%, 2%)
CIE-LABlab(66.42, 50.60, -48.79)
CIE-LCHlch(66.42, 70.29, 316.05°)
OKLaboklab(73.15% 0.1241 -0.1359)
OKLCHoklch(73.15% 0.184 312.4)
XYZxyz(50.8347, 35.8691, 94.6695)
Luminance0.3587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF81FA #ACFA81
analogous
#9381FA #CF81FA #FA81E8
triadic
#CF81FA #FACF81 #81FACF
tetradic
#CF81FA #FA9381 #ACFA81 #81E8FA
square
#CF81FA #FA9381 #ACFA81 #81E8FA
split-complementary
#CF81FA #E8FA81 #81FA93
monochromatic
#A20BF5 #B946F8 #CF81FA #E5BCFC #F4E2FE

Accessibility & contrast

On white

2.57
#CF81FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#CF81FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF81FA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF81FA#FFFFFF#000000##000000
##CF81FA1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFE
Deuteranopia (green-blind)
#7CA3F7
Tritanopia (blue-blind)
#CB94B2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cf81fa;
/* rgb */ color: rgb(207, 129, 250);
/* oklch */ color: oklch(73.1% 0.184 312.4);
Tailwind
colors: {
  custom: {
    50: '#e0a8fc',
    500: '#cf81fa',
    950: '#000000',
  },
}
SCSS
$custom: #cf81fa;
$custom-light: #e0a8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf81fa",
  "rgb": {
    "r": 207,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 278.678,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73147,
    "c": 0.1841,
    "h": 312.4
  },
  "luminance": 0.35868
}

Semantic roles & 50–950 ramp

primary
#CF81FA
secondary
#E1F6D5
accent
#E60052
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151017
muted
#847F85

Preview Lab

Preview with #CF81FA

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

Preview Lab → · Contrast checker → · Palette generator →

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