Skip to content

#cf98ff

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

RGB
207, 152, 255
HSL
272°, 100%, 80%
CMYK
19, 40, 0, 0
Luminance
0.4294

At a glance

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

Hex
#cf98ff
Hue
272°
violet
Saturation
100%
electric
Lightness
80%
light
Brightness
100%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4294
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.59:1
Closest name
Violet
ΔE2000 8.6
Where it sits
Hue272° of 360°
Saturation100%
Lightness80%
Temperature
Warm ← → Cool66% 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#cf98ff
RGBrgb(207, 152, 255)
HSLhsl(272, 100%, 80%)
CMYKcmyk(19%, 40%, 0%, 0%)
LABlab(71.5 39.5 -43.5)
LCHlch(71.5 58.7 312.2)
OKLCHoklch(0.770 0.153 307.8)
Decimal13605119
Display P3color(display-p3 0.812 0.596 1.000)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf98ff on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#cf98ff on black: 9.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #81ADFF
deuteranopia · #8EB0FC
tritanopia · #C8A8BF

Color scale — 50 to 950

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

#F8F1FE
#F1E3FC
#E0C0FC
#cf98ff
#B057FF
#961FFF
#8300F5
#6D00CC
#5700A3
#410576
#290349
Base = 300Lightest = 50 · #F8F1FEDarkest = 950 · #290349
:root {
  --brand-50: #F8F1FE;
  --brand-100: #F1E3FC;
  --brand-200: #E0C0FC;
  --brand-300: #cf98ff;
  --brand-400: #B057FF;
  --brand-500: #961FFF;
  --brand-600: #8300F5;
  --brand-700: #6D00CC;
  --brand-800: #5700A3;
  --brand-900: #410576;
  --brand-950: #290349;
  --brand: #cf98ff;
  --brand-ink: #000000;
}

Colors that work with #cf98ff

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#D8C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#93CC00
Second voice, not a rival
Dark variant#440080
Hover, pressed, headers
Light variant#F3E5FF
Selected rows, tints
Dark surface#1D1424
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 #cf98ff

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#C8FF98
Analogous left#9B98FF
Analogous right#FF98FC
Split-complement 1#FCFF98
Split-complement 2#98FF9B
Triadic 1#FFCF98
Triadic 2#98FFCF
Tetradic#FF9B98

RGB percentages

Red81.2%
Green59.6%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta40.4%
Yellow0.0%
Key (black)0.0%

Color previews

#cf98ff text on a black background

contrast 9.59:1

Card sample

#cf98ff text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf98ff

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.

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

#cf98ff, answered

What color is #cf98ff?

#cf98ff is a light electric violet, closest to Violet (ΔE2000 8.6). It sits at 272° on the hue wheel with 100% saturation and 80% lightness, which reads as cool.

What is the RGB value of #cf98ff?

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

Is #cf98ff a light or a dark color?

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

Should I use black or white text on #cf98ff?

Black. It scores 9.59:1 against #cf98ff, versus 2.19:1 for white — AAA at any size.

What is the complementary color of #cf98ff?

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

What colors go well with #cf98ff?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #93CC00 as an accent and #440080 for hover and pressed states. For a palette, the analogous pair #9B98FF and #FF98FC stays calm, while #C8FF98 is the loudest partner.

What is #cf98ff in CMYK for printing?

cmyk(19%, 40%, 0%, 0%). 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 #cf98ff warm or cool?

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

Work with #cf98ff in the Color Lab