#CF8CFB#CF8CFB

#CF8CFB is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.9% C 0.168 H 310.7°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#CF8CFB
RGBrgb(207, 140, 251)
HSLhsl(276, 93%, 77%)
HSVhsv(276, 44%, 98%)
CMYKcmyk(17.5%, 44.2%, 0%, 1.6%)
CIE-LABlab(68.74, 45.03, -45.68)
CIE-LCHlch(68.74, 64.14, 314.59°)
OKLaboklab(74.89% 0.1094 -0.127)
OKLCHoklch(74.89% 0.168 310.7)
XYZxyz(52.5197, 38.9875, 96.0067)
Luminance0.3899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8CFB #B8FB8C
analogous
#988CFB #CF8CFB #FB8CF0
triadic
#CF8CFB #FBCF8C #8CFBCF
tetradic
#CF8CFB #FB988C #B8FB8C #8CF0FB
square
#CF8CFB #FB988C #B8FB8C #8CF0FB
split-complementary
#CF8CFB #F0FB8C #8CFB98
monochromatic
#9E16F7 #B651F9 #CF8CFB #E8C7FD #F3E1FE

Accessibility & contrast

On white

2.39
#CF8CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#CF8CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8CFB
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8CFB#FFFFFF#000000##000000
##CF8CFB1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A4FF
Deuteranopia (green-blind)
#85A9F8
Tritanopia (blue-blind)
#CA9DB8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cf8cfb;
/* rgb */ color: rgb(207, 140, 251);
/* oklch */ color: oklch(74.9% 0.168 310.7);
Tailwind
colors: {
  custom: {
    50: '#dfaffd',
    500: '#cf8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #cf8cfb;
$custom-light: #dfaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8cfb",
  "rgb": {
    "r": 207,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 276.216,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74894,
    "c": 0.1676,
    "h": 310.7
  },
  "luminance": 0.38987
}

Semantic roles & 50–950 ramp

primary
#CF8CFB
secondary
#E2F6D5
accent
#E6005B
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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