Skip to content

#ddf304

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

RGB
221, 243, 4
HSL
66°, 97%, 48%
CMYK
9, 0, 98, 5
Luminance
0.7948

At a glance

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

Hex
#ddf304
Hue
66°
yellow
Saturation
97%
electric
Lightness
48%
balanced
Brightness
95%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7948
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
16.90:1
Closest name
Yellow
ΔE2000 5.6
Where it sits
Hue66° of 360°
Saturation97%
Lightness48%
Temperature
Warm ← → Cool30% 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#ddf304
RGBrgb(221, 243, 4)
HSLhsl(66, 97%, 48%)
CMYKcmyk(9%, 0%, 98%, 5%)
LABlab(91.5 -29.8 88.8)
LCHlch(91.5 93.7 108.5)
OKLCHoklch(0.916 0.209 116.2)
Decimal14545668
Display P3color(display-p3 0.867 0.953 0.016)

Copy-ready code

/* CSS */
color: #ddf304;
background-color: #ddf304;
/* Tailwind (arbitrary) */
class="text-[#ddf304] bg-[#ddf304]"
/* SCSS */
$brand: #ddf304;
/* SwiftUI */
Color(red: 0.867, green: 0.953, blue: 0.016)
/* Android */
Color.parseColor("#ddf304")
/* Flutter */
Color(0xFFDDF304)
/* Python / OpenCV (BGR) */
(4, 243, 221)

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

Accessibility — WCAG contrast

Aa
#ddf304 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#ddf304 on black: 16.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE600
deuteranopia · #FFE831
tritanopia · #ECE4CF

Color scale — 50 to 950

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

#FCFDF1
#FAFCE4
#F5FBC1
#F3FD91
#EDFC59
#E7FB22
#ddf304
#B7C903
#92A103
#6A7407
#424804
Base = 600Lightest = 50 · #FCFDF1Darkest = 950 · #424804
:root {
  --brand-50: #FCFDF1;
  --brand-100: #FAFCE4;
  --brand-200: #F5FBC1;
  --brand-300: #F3FD91;
  --brand-400: #EDFC59;
  --brand-500: #E7FB22;
  --brand-600: #ddf304;
  --brand-700: #B7C903;
  --brand-800: #92A103;
  --brand-900: #6A7407;
  --brand-950: #424804;
  --brand: #ddf304;
  --brand-ink: #000000;
}

Colors that work with #ddf304

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#E9EDC0
Hairlines and dividers
Muted text#949B4B
Captions on the surface
Accent#0027F7
Second voice, not a rival
Dark variant#727D02
Hover, pressed, headers
Light variant#FCFFE6
Selected rows, tints
Dark surface#232414
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 #ddf304

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#1A04F3
Analogous left#F39104
Analogous right#66F304
Split-complement 1#0466F3
Split-complement 2#9104F3
Triadic 1#04DDF3
Triadic 2#F304DD
Tetradic#04F391

RGB percentages

Red86.7%
Green95.3%
Blue1.6%

CMYK percentages

Cyan9.1%
Magenta0.0%
Yellow98.4%
Key (black)4.7%

Color previews

#ddf304 text on a black background

contrast 16.90:1

Card sample

#ddf304 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 243, 4, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 243, 4, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddf304;
background: linear-gradient(135deg, #ddf304, #3EF304);

Monochromatic scale

Palettes built from #ddf304

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.

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

#ddf304, answered

What color is #ddf304?

#ddf304 is a balanced electric yellow, closest to Yellow (ΔE2000 5.6). It sits at 66° on the hue wheel with 97% saturation and 48% lightness, which reads as warm.

What is the RGB value of #ddf304?

rgb(221, 243, 4) — 221 red, 243 green and 4 blue out of 255, or 86.7% / 95.3% / 1.6% by channel.

Is #ddf304 a light or a dark color?

It is a light color. Relative luminance is 0.7948 and perceived brightness is 87%, so black text on it reaches 16.90:1.

Should I use black or white text on #ddf304?

Black. It scores 16.90:1 against #ddf304, versus 1.24:1 for white — AAA at any size.

What is the complementary color of #ddf304?

#1A04F3 sits directly opposite on the wheel. Softer options are the split-complements #0466F3 and #9104F3, which give the same contrast with far less vibration.

What colors go well with #ddf304?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #949B4B for secondary text, #0027F7 as an accent and #727D02 for hover and pressed states. For a palette, the analogous pair #F39104 and #66F304 stays calm, while #1A04F3 is the loudest partner.

What is #ddf304 in CMYK for printing?

cmyk(9%, 0%, 98%, 5%). 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 #ddf304 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F3B804; nudged cooler, #86F501.

Work with #ddf304 in the Color Lab