Skip to content

#cf98f4

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

RGB
207, 152, 244
HSL
276°, 81%, 78%
CMYK
15, 38, 0, 4
Luminance
0.4225

At a glance

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

Hex
#cf98f4
Hue
276°
violet
Saturation
81%
electric
Lightness
78%
light
Brightness
96%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4225
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.45:1
Closest name
Plum
ΔE2000 7.5
Where it sits
Hue276° of 360°
Saturation81%
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#cf98f4
RGBrgb(207, 152, 244)
HSLhsl(276, 81%, 78%)
CMYKcmyk(15%, 38%, 0%, 4%)
LABlab(71.0 37.1 -38.3)
LCHlch(71.0 53.3 314.1)
OKLCHoklch(0.765 0.140 310.8)
Decimal13605108
Display P3color(display-p3 0.812 0.596 0.957)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf98f4 on white: 2.22:1
AA ✗ fail · AA-large · AAA
Aa
#cf98f4 on black: 9.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #86ABF7
deuteranopia · #93AFF1
tritanopia · #CBA5BB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf98f4 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
#F2E6F9
#E2C6F5
#cf98f4
#B867EF
#A134E9
#8E18DD
#7614B8
#5F1093
#46106B
#2C0A43
Base = 300Lightest = 50 · #F8F3FCDarkest = 950 · #2C0A43
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F2E6F9;
  --brand-200: #E2C6F5;
  --brand-300: #cf98f4;
  --brand-400: #B867EF;
  --brand-500: #A134E9;
  --brand-600: #8E18DD;
  --brand-700: #7614B8;
  --brand-800: #5F1093;
  --brand-900: #46106B;
  --brand-950: #2C0A43;
  --brand: #cf98f4;
  --brand-ink: #000000;
}

Colors that work with #cf98f4

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#7B4B9B
Captions on the surface
Accent#82BC10
Second voice, not a rival
Dark variant#4A0C73
Hover, pressed, headers
Light variant#F4E8FD
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 #cf98f4

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#BDF498
Analogous left#A198F4
Analogous right#F498EB
Split-complement 1#EBF498
Split-complement 2#98F4A1
Triadic 1#F4CF98
Triadic 2#98F4CF
Tetradic#F4A198

RGB percentages

Red81.2%
Green59.6%
Blue95.7%

CMYK percentages

Cyan15.2%
Magenta37.7%
Yellow0.0%
Key (black)4.3%

Color previews

#cf98f4 text on a black background

contrast 9.45:1

Card sample

#cf98f4 text on a white background

contrast 2.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf98f4

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.

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

#cf98f4, answered

What color is #cf98f4?

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

What is the RGB value of #cf98f4?

rgb(207, 152, 244) — 207 red, 152 green and 244 blue out of 255, or 81.2% / 59.6% / 95.7% by channel.

Is #cf98f4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4225 and perceived brightness is 71%, so black text on it reaches 9.45:1.

Should I use black or white text on #cf98f4?

Black. It scores 9.45:1 against #cf98f4, versus 2.22:1 for white — AAA at any size.

What is the complementary color of #cf98f4?

#BDF498 sits directly opposite on the wheel. Softer options are the split-complements #EBF498 and #98F4A1, which give the same contrast with far less vibration.

What colors go well with #cf98f4?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #82BC10 as an accent and #4A0C73 for hover and pressed states. For a palette, the analogous pair #A198F4 and #F498EB stays calm, while #BDF498 is the loudest partner.

What is #cf98f4 in CMYK for printing?

cmyk(15%, 38%, 0%, 4%). 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 #cf98f4 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 #F198F4; nudged cooler, #AD97F5.

Work with #cf98f4 in the Color Lab