Skip to content

#d28df6

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

RGB
210, 141, 246
HSL
279°, 85%, 76%
CMYK
15, 43, 0, 4
Luminance
0.3941

At a glance

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

Hex
#d28df6
Hue
279°
violet
Saturation
85%
electric
Lightness
76%
light
Brightness
96%
HSV value
Perceived
70%
weighted brightness
Luminance
0.3941
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.88:1
Closest name
Violet
ΔE2000 6.1
Where it sits
Hue279° of 360°
Saturation85%
Lightness76%
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#d28df6
RGBrgb(210, 141, 246)
HSLhsl(279, 85%, 76%)
CMYKcmyk(15%, 43%, 0%, 4%)
LABlab(69.0 44.3 -42.5)
LCHlch(69.0 61.4 316.2)
OKLCHoklch(0.751 0.162 313.3)
Decimal13798902
Display P3color(display-p3 0.824 0.553 0.965)

Copy-ready code

/* CSS */
color: #d28df6;
background-color: #d28df6;
/* Tailwind (arbitrary) */
class="text-[#d28df6] bg-[#d28df6]"
/* SCSS */
$brand: #d28df6;
/* SwiftUI */
Color(red: 0.824, green: 0.553, blue: 0.965)
/* Android */
Color.parseColor("#d28df6")
/* Flutter */
Color(0xFFD28DF6)
/* Python / OpenCV (BGR) */
(246, 141, 210)

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 #d28df6 · 8.88:1
Use #000000AAA at every size.
Aa
White text · 2.36:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.88:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d28df6 as text scores 2.36:1 on white and 8.88:1 on black.

Accessibility — WCAG contrast

Aa
#d28df6 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#d28df6 on black: 8.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #79A5FA
deuteranopia · #8AAAF3
tritanopia · #CF9CB6

Color scale — 50 to 950

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

#F9F2FD
#F3E5FA
#E6C5F7
#d28df6
#C163F3
#AD2FEF
#9B12E3
#810FBD
#670C97
#4C0D6D
#300844
Base = 300Lightest = 50 · #F9F2FDDarkest = 950 · #300844
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F3E5FA;
  --brand-200: #E6C5F7;
  --brand-300: #d28df6;
  --brand-400: #C163F3;
  --brand-500: #AD2FEF;
  --brand-600: #9B12E3;
  --brand-700: #810FBD;
  --brand-800: #670C97;
  --brand-900: #4C0D6D;
  --brand-950: #300844;
  --brand: #d28df6;
  --brand-ink: #000000;
}

Colors that work with #d28df6

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#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#77C00C
Second voice, not a rival
Dark variant#510976
Hover, pressed, headers
Light variant#F6E7FD
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 #d28df6

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#B1F68D
Analogous left#9E8DF6
Analogous right#F68DE6
Split-complement 1#E6F68D
Split-complement 2#8DF69E
Triadic 1#F6D28D
Triadic 2#8DF6D2
Tetradic#F69E8D

RGB percentages

Red82.4%
Green55.3%
Blue96.5%

CMYK percentages

Cyan14.6%
Magenta42.7%
Yellow0.0%
Key (black)3.5%

Color previews

#d28df6 text on a black background

contrast 8.88:1

Card sample

#d28df6 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 141, 246, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 141, 246, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d28df6;
background: linear-gradient(135deg, #d28df6, #F68DD4);

Monochromatic scale

Palettes built from #d28df6

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.

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

#d28df6, answered

What color is #d28df6?

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

What is the RGB value of #d28df6?

rgb(210, 141, 246) — 210 red, 141 green and 246 blue out of 255, or 82.4% / 55.3% / 96.5% by channel.

Is #d28df6 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3941 and perceived brightness is 70%, so black text on it reaches 8.88:1.

Should I use black or white text on #d28df6?

Black. It scores 8.88:1 against #d28df6, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #d28df6?

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

What colors go well with #d28df6?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #77C00C as an accent and #510976 for hover and pressed states. For a palette, the analogous pair #9E8DF6 and #F68DE6 stays calm, while #B1F68D is the loudest partner.

What is #d28df6 in CMYK for printing?

cmyk(15%, 43%, 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 #d28df6 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 #F68DF4; nudged cooler, #AB8CF7.

Work with #d28df6 in the Color Lab