#CF81F8#CF81F8

#CF81F8 is a light, vivid violet. Relative luminance 0.357; OKLCH L 73.0% C 0.182 H 312.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#CF81F8
RGBrgb(207, 129, 248)
HSLhsl(279, 89%, 74%)
HSVhsv(279, 48%, 97%)
CMYKcmyk(16.5%, 48%, 0%, 2.7%)
CIE-LABlab(66.32, 50.18, -47.84)
CIE-LCHlch(66.32, 69.33, 316.37°)
OKLaboklab(73.05% 0.1239 -0.1332)
OKLCHoklch(73.05% 0.182 312.9)
XYZxyz(50.5228, 35.7444, 93.0266)
Luminance0.3574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF81F8 #AAF881
analogous
#9481F8 #CF81F8 #F881E6
triadic
#CF81F8 #F8CF81 #81F8CF
tetradic
#CF81F8 #F89481 #AAF881 #81E6F8
square
#CF81F8 #F89481 #AAF881 #81E6F8
split-complementary
#CF81F8 #E6F881 #81F894
monochromatic
#A30DF1 #B947F5 #CF81F8 #E5BBFB #F4E2FD

Accessibility & contrast

On white

2.58
#CF81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#CF81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF81F8
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF81F8#FFFFFF#000000##000000
##CF81F81.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#7DA3F5
Tritanopia (blue-blind)
#CB94B1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cf81f8;
/* rgb */ color: rgb(207, 129, 248);
/* oklch */ color: oklch(73.0% 0.182 312.9);
Tailwind
colors: {
  custom: {
    50: '#e0a8fb',
    500: '#cf81f8',
    950: '#000000',
  },
}
SCSS
$custom: #cf81f8;
$custom-light: #e0a8fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf81f8",
  "rgb": {
    "r": 207,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 279.328,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73045,
    "c": 0.18192,
    "h": 312.9
  },
  "luminance": 0.35743
}

Semantic roles & 50–950 ramp

primary
#CF81F8
secondary
#E1F5D6
accent
#E6004F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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