Skip to content

#cf8def

a light, electric violet · cool · closest name: Violet

RGB
207, 141, 239
HSL
280°, 75%, 75%
CMYK
13, 41, 0, 6
Luminance
0.3855

At a glance

Every number on this page in one read: what #cf8def is made of, how bright it looks, and which way it leans.

Hex
#cf8def
Hue
280°
violet
Saturation
75%
electric
Lightness
75%
light
Brightness
94%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3855
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.71:1
Closest name
Violet
ΔE2000 6.1
Where it sits
Hue280° of 360°
Saturation75%
Lightness75%
Temperature
Warm ← → Cool61% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#cf8def
RGBrgb(207, 141, 239)
HSLhsl(280, 75%, 75%)
CMYKcmyk(13%, 41%, 0%, 6%)
LABlab(68.4 42.0 -39.6)
LCHlch(68.4 57.7 316.7)
OKLCHoklch(0.745 0.152 314.1)
Decimal13602287
Display P3color(display-p3 0.812 0.553 0.937)

Copy-ready code

/* CSS */
color: #cf8def;
background-color: #cf8def;
/* Tailwind (arbitrary) */
class="text-[#cf8def] bg-[#cf8def]"
/* SCSS */
$brand: #cf8def;
/* SwiftUI */
Color(red: 0.812, green: 0.553, blue: 0.937)
/* Android */
Color.parseColor("#cf8def")
/* Flutter */
Color(0xFFCF8DEF)
/* Python / OpenCV (BGR) */
(239, 141, 207)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #cf8def · 8.71:1
Use #000000AAA at every size.
Aa
White text · 2.41:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.71:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cf8def as text scores 2.41:1 on white and 8.71:1 on black.

Accessibility — WCAG contrast

Aa
#cf8def on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#cf8def on black: 8.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7BA3F3
deuteranopia · #8CA9EC
tritanopia · #CD9BB3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf8def is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F3FC
#F3E7F9
#E5C8F4
#cf8def
#C16BEA
#AC3AE3
#9A1ED7
#8119B3
#67148F
#4C1368
#2F0C41
Base = 300Lightest = 50 · #F9F3FCDarkest = 950 · #2F0C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F9;
  --brand-200: #E5C8F4;
  --brand-300: #cf8def;
  --brand-400: #C16BEA;
  --brand-500: #AC3AE3;
  --brand-600: #9A1ED7;
  --brand-700: #8119B3;
  --brand-800: #67148F;
  --brand-900: #4C1368;
  --brand-950: #2F0C41;
  --brand: #cf8def;
  --brand-ink: #000000;
}

Colors that work with #cf8def

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8F4FA
Tinted page background
Border#DEC0ED
Hairlines and dividers
Muted text#814B9B
Captions on the surface
Accent#73B814
Second voice, not a rival
Dark variant#501070
Hover, pressed, headers
Light variant#F6E9FC
Selected rows, tints
Dark surface#1F1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #cf8def

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#ADEF8D
Analogous left#9E8DEF
Analogous right#EF8DDE
Split-complement 1#DEEF8D
Split-complement 2#8DEF9E
Triadic 1#EFCF8D
Triadic 2#8DEFCF
Tetradic#EF9E8D

RGB percentages

Red81.2%
Green55.3%
Blue93.7%

CMYK percentages

Cyan13.4%
Magenta41.0%
Yellow0.0%
Key (black)6.3%

Color previews

#cf8def text on a black background

contrast 8.71:1

Card sample

#cf8def text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #cf8def;
Background color
Panel with #cf8def background
background-color: #cf8def;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #cf8def;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(207, 141, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 141, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf8def;
background: linear-gradient(135deg, #cf8def, #EF8DCE);

Monochromatic scale

Palettes built from #cf8def

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#cf8def in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cf8def, answered

What color is #cf8def?

#cf8def is a light electric violet, closest to Violet (ΔE2000 6.1). It sits at 280° on the hue wheel with 75% saturation and 75% lightness, which reads as cool.

What is the RGB value of #cf8def?

rgb(207, 141, 239) — 207 red, 141 green and 239 blue out of 255, or 81.2% / 55.3% / 93.7% by channel.

Is #cf8def a light or a dark color?

It is a mid-tone. Relative luminance is 0.3855 and perceived brightness is 69%, so black text on it reaches 8.71:1.

Should I use black or white text on #cf8def?

Black. It scores 8.71:1 against #cf8def, versus 2.41:1 for white — AAA at any size.

What is the complementary color of #cf8def?

#ADEF8D sits directly opposite on the wheel. Softer options are the split-complements #DEEF8D and #8DEF9E, which give the same contrast with far less vibration.

What colors go well with #cf8def?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #73B814 as an accent and #501070 for hover and pressed states. For a palette, the analogous pair #9E8DEF and #EF8DDE stays calm, while #ADEF8D is the loudest partner.

What is #cf8def in CMYK for printing?

cmyk(13%, 41%, 0%, 6%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #cf8def warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EF8DEB; nudged cooler, #AB8CF0.

Work with #cf8def in the Color Lab