#CF8CF2#CF8CF2

#CF8CF2 is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.5% C 0.157 H 313.3°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#CF8CF2
RGBrgb(207, 140, 242)
HSLhsl(279, 80%, 75%)
HSVhsv(279, 42%, 95%)
CMYKcmyk(14.5%, 42.1%, 0%, 5.1%)
CIE-LABlab(68.34, 43.13, -41.39)
CIE-LCHlch(68.34, 59.77, 316.18°)
OKLaboklab(74.46% 0.1079 -0.1146)
OKLCHoklch(74.46% 0.157 313.3)
XYZxyz(51.1346, 38.4334, 88.7119)
Luminance0.3843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8CF2 #AFF28C
analogous
#9C8CF2 #CF8CF2 #F28CE2
triadic
#CF8CF2 #F2CF8C #8CF2CF
tetradic
#CF8CF2 #F29C8C #AFF28C #8CE2F2
square
#CF8CF2 #F29C8C #AFF28C #8CE2F2
split-complementary
#CF8CF2 #E2F28C #8CF29C
monochromatic
#A11EE6 #B855EC #CF8CF2 #E6C3F8 #F4E4FC

Accessibility & contrast

On white

2.42
#CF8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#CF8CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8CF2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8CF2#FFFFFF#000000##000000
##CF8CF21.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#CC9BB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cf8cf2;
/* rgb */ color: rgb(207, 140, 242);
/* oklch */ color: oklch(74.5% 0.157 313.3);
Tailwind
colors: {
  custom: {
    50: '#dfaff6',
    500: '#cf8cf2',
    950: '#000000',
  },
}
SCSS
$custom: #cf8cf2;
$custom-light: #dfaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8cf2",
  "rgb": {
    "r": 207,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 279.412,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.7446,
    "c": 0.15739,
    "h": 313.3
  },
  "luminance": 0.38432
}

Semantic roles & 50–950 ramp

primary
#CF8CF2
secondary
#E1F4D7
accent
#DC0A52
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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