Skip to content

#cf8aef

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

RGB
207, 138, 239
HSL
281°, 76%, 74%
CMYK
13, 42, 0, 6
Luminance
0.3767

At a glance

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

Hex
#cf8aef
Hue
281°
violet
Saturation
76%
electric
Lightness
74%
light
Brightness
94%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3767
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.53:1
Closest name
Violet
ΔE2000 5.9
Where it sits
Hue281° of 360°
Saturation76%
Lightness74%
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#cf8aef
RGBrgb(207, 138, 239)
HSLhsl(281, 76%, 74%)
CMYKcmyk(13%, 42%, 0%, 6%)
LABlab(67.8 43.6 -40.6)
LCHlch(67.8 59.6 317.0)
OKLCHoklch(0.740 0.157 314.4)
Decimal13601519
Display P3color(display-p3 0.812 0.541 0.937)

Copy-ready code

/* CSS */
color: #cf8aef;
background-color: #cf8aef;
/* Tailwind (arbitrary) */
class="text-[#cf8aef] bg-[#cf8aef]"
/* SCSS */
$brand: #cf8aef;
/* SwiftUI */
Color(red: 0.812, green: 0.541, blue: 0.937)
/* Android */
Color.parseColor("#cf8aef")
/* Flutter */
Color(0xFFCF8AEF)
/* Python / OpenCV (BGR) */
(239, 138, 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 #cf8aef · 8.53:1
Use #000000AAA at every size.
Aa
White text · 2.46:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.53:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cf8aef as text scores 2.46:1 on white and 8.53:1 on black.

Accessibility — WCAG contrast

Aa
#cf8aef on white: 2.46:1
AA ✗ fail · AA-large · AAA
Aa
#cf8aef on black: 8.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #77A1F3
deuteranopia · #89A7EC
tritanopia · #CD98B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf8aef 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
#E6C8F4
#cf8aef
#C26BEB
#AE3AE4
#9C1DD7
#8219B3
#681490
#4D1268
#300C41
Base = 300Lightest = 50 · #F9F3FCDarkest = 950 · #300C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F9;
  --brand-200: #E6C8F4;
  --brand-300: #cf8aef;
  --brand-400: #C26BEB;
  --brand-500: #AE3AE4;
  --brand-600: #9C1DD7;
  --brand-700: #8219B3;
  --brand-800: #681490;
  --brand-900: #4D1268;
  --brand-950: #300C41;
  --brand: #cf8aef;
  --brand-ink: #000000;
}

Colors that work with #cf8aef

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#71B814
Second voice, not a rival
Dark variant#510F70
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 #cf8aef

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#AAEF8A
Analogous left#9C8AEF
Analogous right#EF8ADC
Split-complement 1#DCEF8A
Split-complement 2#8AEF9C
Triadic 1#EFCF8A
Triadic 2#8AEFCF
Tetradic#EF9C8A

RGB percentages

Red81.2%
Green54.1%
Blue93.7%

CMYK percentages

Cyan13.4%
Magenta42.3%
Yellow0.0%
Key (black)6.3%

Color previews

#cf8aef text on a black background

contrast 8.53:1

Card sample

#cf8aef text on a white background

contrast 2.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf8aef

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.

#cf8aef 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.

#cf8aef, answered

What color is #cf8aef?

#cf8aef is a light electric violet, closest to Violet (ΔE2000 5.9). It sits at 281° on the hue wheel with 76% saturation and 74% lightness, which reads as cool.

What is the RGB value of #cf8aef?

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

Is #cf8aef a light or a dark color?

It is a mid-tone. Relative luminance is 0.3767 and perceived brightness is 68%, so black text on it reaches 8.53:1.

Should I use black or white text on #cf8aef?

Black. It scores 8.53:1 against #cf8aef, versus 2.46:1 for white — AAA at any size.

What is the complementary color of #cf8aef?

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

What colors go well with #cf8aef?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #71B814 as an accent and #510F70 for hover and pressed states. For a palette, the analogous pair #9C8AEF and #EF8ADC stays calm, while #AAEF8A is the loudest partner.

What is #cf8aef in CMYK for printing?

cmyk(13%, 42%, 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 #cf8aef 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 #EF8AEA; nudged cooler, #A989F0.

Work with #cf8aef in the Color Lab