#CF8DF2#CF8DF2

#CF8DF2 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.6% C 0.156 H 313.1°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#CF8DF2
RGBrgb(207, 141, 242)
HSLhsl(279, 80%, 75%)
HSVhsv(279, 42%, 95%)
CMYKcmyk(14.5%, 41.7%, 0%, 5.1%)
CIE-LABlab(68.55, 42.59, -41.05)
CIE-LCHlch(68.55, 59.16, 316.06°)
OKLaboklab(74.62% 0.1065 -0.1136)
OKLCHoklch(74.62% 0.156 313.1)
XYZxyz(51.2813, 38.7270, 88.7608)
Luminance0.3873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8DF2 #B0F28D
analogous
#9C8DF2 #CF8DF2 #F28DE3
triadic
#CF8DF2 #F2CF8D #8DF2CF
tetradic
#CF8DF2 #F29C8D #B0F28D #8DE3F2
square
#CF8DF2 #F29C8D #B0F28D #8DE3F2
split-complementary
#CF8DF2 #E3F28D #8DF29C
monochromatic
#A11FE5 #B856EC #CF8DF2 #E6C4F8 #F3E4FC

Accessibility & contrast

On white

2.40
#CF8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#CF8DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8DF2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8DF2#FFFFFF#000000##000000
##CF8DF21.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#CC9BB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cf8df2;
/* rgb */ color: rgb(207, 141, 242);
/* oklch */ color: oklch(74.6% 0.156 313.1);
Tailwind
colors: {
  custom: {
    50: '#dfaff6',
    500: '#cf8df2',
    950: '#000000',
  },
}
SCSS
$custom: #cf8df2;
$custom-light: #dfaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8df2",
  "rgb": {
    "r": 207,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 279.208,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74621,
    "c": 0.15573,
    "h": 313.1
  },
  "luminance": 0.38726
}

Semantic roles & 50–950 ramp

primary
#CF8DF2
secondary
#E1F4D7
accent
#DC0A52
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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