Skip to content

#df74fb

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

RGB
223, 116, 251
HSL
288°, 94%, 72%
CMYK
11, 54, 0, 2
Luminance
0.3514

At a glance

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

Hex
#df74fb
Hue
288°
violet
Saturation
94%
electric
Lightness
72%
light
Brightness
98%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3514
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.03:1
Closest name
Violet
ΔE2000 5.4
Where it sits
Hue288° of 360°
Saturation94%
Lightness72%
Temperature
Warm ← → Cool57% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#df74fb
RGBrgb(223, 116, 251)
HSLhsl(288, 94%, 72%)
CMYKcmyk(11%, 54%, 0%, 2%)
LABlab(65.9 61.5 -50.1)
LCHlch(65.9 79.3 320.8)
OKLCHoklch(0.732 0.212 318.9)
Decimal14644475
Display P3color(display-p3 0.875 0.455 0.984)

Copy-ready code

/* CSS */
color: #df74fb;
background-color: #df74fb;
/* Tailwind (arbitrary) */
class="text-[#df74fb] bg-[#df74fb]"
/* SCSS */
$brand: #df74fb;
/* SwiftUI */
Color(red: 0.875, green: 0.455, blue: 0.984)
/* Android */
Color.parseColor("#df74fb")
/* Flutter */
Color(0xFFDF74FB)
/* Python / OpenCV (BGR) */
(251, 116, 223)

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

Accessibility — WCAG contrast

Aa
#df74fb on white: 2.62:1
AA ✗ fail · AA-large · AAA
Aa
#df74fb on black: 8.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5899FF
deuteranopia · #7CA4F7
tritanopia · #DF88AD

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df74fb is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF2FD
#F7E4FB
#EEC2FA
#E692FC
#df74fb
#CD25F9
#BE07EE
#9E06C6
#7F059F
#5C0872
#3A0547
Base = 400Lightest = 50 · #FBF2FDDarkest = 950 · #3A0547
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F7E4FB;
  --brand-200: #EEC2FA;
  --brand-300: #E692FC;
  --brand-400: #df74fb;
  --brand-500: #CD25F9;
  --brand-600: #BE07EE;
  --brand-700: #9E06C6;
  --brand-800: #7F059F;
  --brand-900: #5C0872;
  --brand-950: #3A0547;
  --brand: #df74fb;
  --brand-ink: #000000;
}

Colors that work with #df74fb

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#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5ECB01
Second voice, not a rival
Dark variant#63047C
Hover, pressed, headers
Light variant#F9E6FE
Selected rows, tints
Dark surface#211424
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 #df74fb

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#90FB74
Analogous left#9C74FB
Analogous right#FB74D3
Split-complement 1#D3FB74
Split-complement 2#74FB9C
Triadic 1#FBDF74
Triadic 2#74FBDF
Tetradic#FB9C74

RGB percentages

Red87.5%
Green45.5%
Blue98.4%

CMYK percentages

Cyan11.2%
Magenta53.8%
Yellow0.0%
Key (black)1.6%

Color previews

#df74fb text on a black background

contrast 8.03:1

Card sample

#df74fb text on a white background

contrast 2.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 116, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 116, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df74fb;
background: linear-gradient(135deg, #df74fb, #FB74BD);

Monochromatic scale

Palettes built from #df74fb

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.

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

#df74fb, answered

What color is #df74fb?

#df74fb is a light electric violet, closest to Violet (ΔE2000 5.4). It sits at 288° on the hue wheel with 94% saturation and 72% lightness, which reads as neutral.

What is the RGB value of #df74fb?

rgb(223, 116, 251) — 223 red, 116 green and 251 blue out of 255, or 87.5% / 45.5% / 98.4% by channel.

Is #df74fb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3514 and perceived brightness is 68%, so black text on it reaches 8.03:1.

Should I use black or white text on #df74fb?

Black. It scores 8.03:1 against #df74fb, versus 2.62:1 for white — AAA at any size.

What is the complementary color of #df74fb?

#90FB74 sits directly opposite on the wheel. Softer options are the split-complements #D3FB74 and #74FB9C, which give the same contrast with far less vibration.

What colors go well with #df74fb?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5ECB01 as an accent and #63047C for hover and pressed states. For a palette, the analogous pair #9C74FB and #FB74D3 stays calm, while #90FB74 is the loudest partner.

What is #df74fb in CMYK for printing?

cmyk(11%, 54%, 0%, 2%). 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 #df74fb warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB74E5; nudged cooler, #AE73FC.

Work with #df74fb in the Color Lab