Skip to content

#cf9af1

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

RGB
207, 154, 241
HSL
277°, 76%, 78%
CMYK
14, 36, 0, 6
Luminance
0.4273

At a glance

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

Hex
#cf9af1
Hue
277°
violet
Saturation
76%
electric
Lightness
78%
light
Brightness
95%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4273
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.55:1
Closest name
Plum
ΔE2000 6.8
Where it sits
Hue277° of 360°
Saturation76%
Lightness78%
Temperature
Warm ← → Cool63% 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#cf9af1
RGBrgb(207, 154, 241)
HSLhsl(277, 76%, 78%)
CMYKcmyk(14%, 36%, 0%, 6%)
LABlab(71.4 35.4 -36.1)
LCHlch(71.4 50.5 314.4)
OKLCHoklch(0.767 0.133 311.4)
Decimal13605617
Display P3color(display-p3 0.812 0.604 0.945)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf9af1 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#cf9af1 on black: 9.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8AACF4
deuteranopia · #96B0EE
tritanopia · #CCA6BA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf9af1 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.

#F8F3FC
#F2E7F9
#E3C8F4
#cf9af1
#B96BEB
#A13AE4
#8F1ED7
#7719B3
#5F148F
#471368
#2C0C41
Base = 300Lightest = 50 · #F8F3FCDarkest = 950 · #2C0C41
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F2E7F9;
  --brand-200: #E3C8F4;
  --brand-300: #cf9af1;
  --brand-400: #B96BEB;
  --brand-500: #A13AE4;
  --brand-600: #8F1ED7;
  --brand-700: #7719B3;
  --brand-800: #5F148F;
  --brand-900: #471368;
  --brand-950: #2C0C41;
  --brand: #cf9af1;
  --brand-ink: #000000;
}

Colors that work with #cf9af1

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#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#7CB715
Second voice, not a rival
Dark variant#4A0F70
Hover, pressed, headers
Light variant#F4E9FC
Selected rows, tints
Dark surface#1E1424
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 #cf9af1

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#BCF19A
Analogous left#A49AF1
Analogous right#F19AE8
Split-complement 1#E8F19A
Split-complement 2#9AF1A4
Triadic 1#F1CF9A
Triadic 2#9AF1CF
Tetradic#F1A49A

RGB percentages

Red81.2%
Green60.4%
Blue94.5%

CMYK percentages

Cyan14.1%
Magenta36.1%
Yellow0.0%
Key (black)5.5%

Color previews

#cf9af1 text on a black background

contrast 9.55:1

Card sample

#cf9af1 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf9af1

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.

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

#cf9af1, answered

What color is #cf9af1?

#cf9af1 is a light electric violet, closest to Plum (ΔE2000 6.8). It sits at 277° on the hue wheel with 76% saturation and 78% lightness, which reads as cool.

What is the RGB value of #cf9af1?

rgb(207, 154, 241) — 207 red, 154 green and 241 blue out of 255, or 81.2% / 60.4% / 94.5% by channel.

Is #cf9af1 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4273 and perceived brightness is 72%, so black text on it reaches 9.55:1.

Should I use black or white text on #cf9af1?

Black. It scores 9.55:1 against #cf9af1, versus 2.20:1 for white — AAA at any size.

What is the complementary color of #cf9af1?

#BCF19A sits directly opposite on the wheel. Softer options are the split-complements #E8F19A and #9AF1A4, which give the same contrast with far less vibration.

What colors go well with #cf9af1?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #7CB715 as an accent and #4A0F70 for hover and pressed states. For a palette, the analogous pair #A49AF1 and #F19AE8 stays calm, while #BCF19A is the loudest partner.

What is #cf9af1 in CMYK for printing?

cmyk(14%, 36%, 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 #cf9af1 warm or cool?

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

Work with #cf9af1 in the Color Lab