Skip to content

#d9f521

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

RGB
217, 245, 33
HSL
68°, 91%, 55%
CMYK
11, 0, 87, 4
Luminance
0.8017

At a glance

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

Hex
#d9f521
Hue
68°
yellow
Saturation
91%
electric
Lightness
55%
balanced
Brightness
96%
HSV value
Perceived
87%
weighted brightness
Luminance
0.8017
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.03:1
Closest name
Yellow
ΔE2000 6.7
Where it sits
Hue68° of 360°
Saturation91%
Lightness55%
Temperature
Warm ← → Cool32% 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#d9f521
RGBrgb(217, 245, 33)
HSLhsl(68, 91%, 55%)
CMYKcmyk(11%, 0%, 87%, 4%)
LABlab(91.8 -31.9 85.7)
LCHlch(91.8 91.4 110.4)
OKLCHoklch(0.918 0.208 117.9)
Decimal14284065
Display P3color(display-p3 0.851 0.961 0.129)

Copy-ready code

/* CSS */
color: #d9f521;
background-color: #d9f521;
/* Tailwind (arbitrary) */
class="text-[#d9f521] bg-[#d9f521]"
/* SCSS */
$brand: #d9f521;
/* SwiftUI */
Color(red: 0.851, green: 0.961, blue: 0.129)
/* Android */
Color.parseColor("#d9f521")
/* Flutter */
Color(0xFFD9F521)
/* Python / OpenCV (BGR) */
(33, 245, 217)

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

Accessibility — WCAG contrast

Aa
#d9f521 on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#d9f521 on black: 17.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE700
deuteranopia · #FFE83C
tritanopia · #E7E7D1

Color scale — 50 to 950

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

#FBFDF2
#F8FBE4
#F2F9C3
#EDFA94
#E4F85E
#d9f521
#CDEA0B
#ABC309
#899C07
#63710A
#3E4606
Base = 500Lightest = 50 · #FBFDF2Darkest = 950 · #3E4606
:root {
  --brand-50: #FBFDF2;
  --brand-100: #F8FBE4;
  --brand-200: #F2F9C3;
  --brand-300: #EDFA94;
  --brand-400: #E4F85E;
  --brand-500: #d9f521;
  --brand-600: #CDEA0B;
  --brand-700: #ABC309;
  --brand-800: #899C07;
  --brand-900: #63710A;
  --brand-950: #3E4606;
  --brand: #d9f521;
  --brand-ink: #000000;
}

Colors that work with #d9f521

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#E7EDC0
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#1C36FA
Second voice, not a rival
Dark variant#6B7A05
Hover, pressed, headers
Light variant#FBFEE7
Selected rows, tints
Dark surface#222414
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 #d9f521

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#3D21F5
Analogous left#F5A721
Analogous right#6FF521
Split-complement 1#216FF5
Split-complement 2#A721F5
Triadic 1#21D9F5
Triadic 2#F521D9
Tetradic#21F5A7

RGB percentages

Red85.1%
Green96.1%
Blue12.9%

CMYK percentages

Cyan11.4%
Magenta0.0%
Yellow86.5%
Key (black)3.9%

Color previews

#d9f521 text on a black background

contrast 17.03:1

Card sample

#d9f521 text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 245, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 245, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d9f521;
background: linear-gradient(135deg, #d9f521, #4CF521);

Monochromatic scale

Palettes built from #d9f521

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.

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

#d9f521, answered

What color is #d9f521?

#d9f521 is a balanced electric yellow, closest to Yellow (ΔE2000 6.7). It sits at 68° on the hue wheel with 91% saturation and 55% lightness, which reads as warm.

What is the RGB value of #d9f521?

rgb(217, 245, 33) — 217 red, 245 green and 33 blue out of 255, or 85.1% / 96.1% / 12.9% by channel.

Is #d9f521 a light or a dark color?

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

Should I use black or white text on #d9f521?

Black. It scores 17.03:1 against #d9f521, versus 1.23:1 for white — AAA at any size.

What is the complementary color of #d9f521?

#3D21F5 sits directly opposite on the wheel. Softer options are the split-complements #216FF5 and #A721F5, which give the same contrast with far less vibration.

What colors go well with #d9f521?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #909B4B for secondary text, #1C36FA as an accent and #6B7A05 for hover and pressed states. For a palette, the analogous pair #F5A721 and #6FF521 stays calm, while #3D21F5 is the loudest partner.

What is #d9f521 in CMYK for printing?

cmyk(11%, 0%, 87%, 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 #d9f521 warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F5C321; nudged cooler, #8BF71F.

Work with #d9f521 in the Color Lab