Skip to content

#d098fd

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

RGB
208, 152, 253
HSL
273°, 96%, 79%
CMYK
18, 40, 0, 1
Luminance
0.4296

At a glance

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

Hex
#d098fd
Hue
273°
violet
Saturation
96%
electric
Lightness
79%
light
Brightness
99%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4296
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.59:1
Closest name
Violet
ΔE2000 8.3
Where it sits
Hue273° of 360°
Saturation96%
Lightness79%
Temperature
Warm ← → Cool65% 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#d098fd
RGBrgb(208, 152, 253)
HSLhsl(273, 96%, 79%)
CMYKcmyk(18%, 40%, 0%, 1%)
LABlab(71.5 39.3 -42.4)
LCHlch(71.5 57.8 312.8)
OKLCHoklch(0.770 0.151 308.7)
Decimal13670653
Display P3color(display-p3 0.816 0.596 0.992)

Copy-ready code

/* CSS */
color: #d098fd;
background-color: #d098fd;
/* Tailwind (arbitrary) */
class="text-[#d098fd] bg-[#d098fd]"
/* SCSS */
$brand: #d098fd;
/* SwiftUI */
Color(red: 0.816, green: 0.596, blue: 0.992)
/* Android */
Color.parseColor("#d098fd")
/* Flutter */
Color(0xFFD098FD)
/* Python / OpenCV (BGR) */
(253, 152, 208)

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 #d098fd · 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: #d098fd as text scores 2.19:1 on white and 9.59:1 on black.

Accessibility — WCAG contrast

Aa
#d098fd on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#d098fd on black: 9.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #83ADFF
deuteranopia · #90B0FA
tritanopia · #CAA7BF

Color scale — 50 to 950

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

#F8F1FD
#F1E4FC
#E1C1FA
#d098fd
#B45AFC
#9B23FB
#8705F0
#7104C8
#5A03A0
#430773
#2A0448
Base = 300Lightest = 50 · #F8F1FDDarkest = 950 · #2A0448
:root {
  --brand-50: #F8F1FD;
  --brand-100: #F1E4FC;
  --brand-200: #E1C1FA;
  --brand-300: #d098fd;
  --brand-400: #B45AFC;
  --brand-500: #9B23FB;
  --brand-600: #8705F0;
  --brand-700: #7104C8;
  --brand-800: #5A03A0;
  --brand-900: #430773;
  --brand-950: #2A0448;
  --brand: #d098fd;
  --brand-ink: #000000;
}

Colors that work with #d098fd

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#D9C0ED
Hairlines and dividers
Muted text#774B9B
Captions on the surface
Accent#8ECC00
Second voice, not a rival
Dark variant#46027D
Hover, pressed, headers
Light variant#F4E6FF
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 #d098fd

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#C5FD98
Analogous left#9D98FD
Analogous right#FD98F7
Split-complement 1#F7FD98
Split-complement 2#98FD9D
Triadic 1#FDD098
Triadic 2#98FDD0
Tetradic#FD9D98

RGB percentages

Red81.6%
Green59.6%
Blue99.2%

CMYK percentages

Cyan17.8%
Magenta39.9%
Yellow0.0%
Key (black)0.8%

Color previews

#d098fd text on a black background

contrast 9.59:1

Card sample

#d098fd text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d098fd

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.

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

#d098fd, answered

What color is #d098fd?

#d098fd is a light electric violet, closest to Violet (ΔE2000 8.3). It sits at 273° on the hue wheel with 96% saturation and 79% lightness, which reads as cool.

What is the RGB value of #d098fd?

rgb(208, 152, 253) — 208 red, 152 green and 253 blue out of 255, or 81.6% / 59.6% / 99.2% by channel.

Is #d098fd a light or a dark color?

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

Should I use black or white text on #d098fd?

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

What is the complementary color of #d098fd?

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

What colors go well with #d098fd?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #774B9B for secondary text, #8ECC00 as an accent and #46027D for hover and pressed states. For a palette, the analogous pair #9D98FD and #FD98F7 stays calm, while #C5FD98 is the loudest partner.

What is #d098fd in CMYK for printing?

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

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

Work with #d098fd in the Color Lab