Skip to content

#dfe52f

a balanced, electric yellow · warm · closest name: Yellow

RGB
223, 229, 47
HSL
62°, 78%, 54%
CMYK
3, 0, 80, 10
Luminance
0.7193

At a glance

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

Hex
#dfe52f
Hue
62°
yellow
Saturation
78%
electric
Lightness
54%
balanced
Brightness
90%
HSV value
Perceived
84%
weighted brightness
Luminance
0.7193
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.39:1
Closest name
Yellow
ΔE2000 6.6
Where it sits
Hue62° of 360°
Saturation78%
Lightness54%
Temperature
Warm ← → Cool27% cool

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

Every format

HEX#dfe52f
RGBrgb(223, 229, 47)
HSLhsl(62, 78%, 54%)
CMYKcmyk(3%, 0%, 80%, 10%)
LABlab(87.9 -21.6 79.5)
LCHlch(87.9 82.4 105.2)
OKLCHoklch(0.889 0.185 111.6)
Decimal14673199
Display P3color(display-p3 0.875 0.898 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfe52f on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#dfe52f on black: 15.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F7DA00
deuteranopia · #F8DF41
tritanopia · #EFD6C4

Color scale — 50 to 950

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

#FCFCF3
#F8F9E6
#F3F5C7
#F0F39B
#E8EC69
#dfe52f
#D3DA1B
#B0B517
#8D9112
#666911
#40420B
Base = 500Lightest = 50 · #FCFCF3Darkest = 950 · #40420B
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F8F9E6;
  --brand-200: #F3F5C7;
  --brand-300: #F0F39B;
  --brand-400: #E8EC69;
  --brand-500: #dfe52f;
  --brand-600: #D3DA1B;
  --brand-700: #B0B517;
  --brand-800: #8D9112;
  --brand-900: #666911;
  --brand-950: #40420B;
  --brand: #dfe52f;
  --brand-ink: #000000;
}

Colors that work with #dfe52f

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#FAFAF4
Tinted page background
Border#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#2A54EA
Second voice, not a rival
Dark variant#6E710E
Hover, pressed, headers
Light variant#FCFCE8
Selected rows, tints
Dark surface#242414
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 #dfe52f

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
  • 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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#352FE5
Analogous left#E5902F
Analogous right#84E52F
Split-complement 1#2F84E5
Split-complement 2#902FE5
Triadic 1#2FDFE5
Triadic 2#E52FDF
Tetradic#2FE590

RGB percentages

Red87.5%
Green89.8%
Blue18.4%

CMYK percentages

Cyan2.6%
Magenta0.0%
Yellow79.5%
Key (black)10.2%

Color previews

#dfe52f text on a black background

contrast 15.39:1

Card sample

#dfe52f text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 229, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 229, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfe52f;
background: linear-gradient(135deg, #dfe52f, #66E52F);

Monochromatic scale

Palettes built from #dfe52f

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.

#dfe52f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#dfe52f, answered

What color is #dfe52f?

#dfe52f is a balanced electric yellow, closest to Yellow (ΔE2000 6.6). It sits at 62° on the hue wheel with 78% saturation and 54% lightness, which reads as warm.

What is the RGB value of #dfe52f?

rgb(223, 229, 47) — 223 red, 229 green and 47 blue out of 255, or 87.5% / 89.8% / 18.4% by channel.

Is #dfe52f a light or a dark color?

It is a light color. Relative luminance is 0.7193 and perceived brightness is 84%, so black text on it reaches 15.39:1.

Should I use black or white text on #dfe52f?

Black. It scores 15.39:1 against #dfe52f, versus 1.36:1 for white — AAA at any size.

What is the complementary color of #dfe52f?

#352FE5 sits directly opposite on the wheel. Softer options are the split-complements #2F84E5 and #902FE5, which give the same contrast with far less vibration.

What colors go well with #dfe52f?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #2A54EA as an accent and #6E710E for hover and pressed states. For a palette, the analogous pair #E5902F and #84E52F stays calm, while #352FE5 is the loudest partner.

What is #dfe52f in CMYK for printing?

cmyk(3%, 0%, 80%, 10%). 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 #dfe52f warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E5AC2F; nudged cooler, #9DE72D.

Work with #dfe52f in the Color Lab