#CF8DF7#CF8DF7

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

Color values

HEX#CF8DF7
RGBrgb(207, 141, 247)
HSLhsl(277, 87%, 76%)
HSVhsv(277, 43%, 97%)
CMYKcmyk(16.2%, 42.9%, 0%, 3.1%)
CIE-LABlab(68.77, 43.64, -43.44)
CIE-LCHlch(68.77, 61.58, 315.13°)
OKLaboklab(74.86% 0.1074 -0.1205)
OKLCHoklch(74.86% 0.161 311.7)
XYZxyz(52.0426, 39.0315, 92.7699)
Luminance0.3903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8DF7 #B5F78D
analogous
#9A8DF7 #CF8DF7 #F78DEA
triadic
#CF8DF7 #F7CF8D #8DF7CF
tetradic
#CF8DF7 #F79A8D #B5F78D #8DEAF7
square
#CF8DF7 #F79A8D #B5F78D #8DEAF7
split-complementary
#CF8DF7 #EAF78D #8DF79A
monochromatic
#9F1BEF #B754F3 #CF8DF7 #E7C6FB #F3E2FD

Accessibility & contrast

On white

2.38
#CF8DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#CF8DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8DF7
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8DF7#FFFFFF#000000##000000
##CF8DF71.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A4FB
Deuteranopia (green-blind)
#88A9F4
Tritanopia (blue-blind)
#CB9DB6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cf8df7;
/* rgb */ color: rgb(207, 141, 247);
/* oklch */ color: oklch(74.9% 0.161 311.7);
Tailwind
colors: {
  custom: {
    50: '#dfaffa',
    500: '#cf8df7',
    950: '#000000',
  },
}
SCSS
$custom: #cf8df7;
$custom-light: #dfaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8df7",
  "rgb": {
    "r": 207,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 277.358,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74859,
    "c": 0.1614,
    "h": 311.7
  },
  "luminance": 0.39031
}

Semantic roles & 50–950 ramp

primary
#CF8DF7
secondary
#E2F5D6
accent
#E30257
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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