Skip to content

#dcf52c

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

RGB
220, 245, 44
HSL
68°, 91%, 57%
CMYK
10, 0, 82, 4
Luminance
0.8070

At a glance

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

Hex
#dcf52c
Hue
68°
yellow
Saturation
91%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
88%
weighted brightness
Luminance
0.8070
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.14:1
Closest name
Yellow
ΔE2000 6.4
Where it sits
Hue68° of 360°
Saturation91%
Lightness57%
Temperature
Warm ← → Cool31% 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#dcf52c
RGBrgb(220, 245, 44)
HSLhsl(68, 91%, 57%)
CMYKcmyk(10%, 0%, 82%, 4%)
LABlab(92.0 -30.4 83.7)
LCHlch(92.0 89.1 110.0)
OKLCHoklch(0.921 0.203 117.2)
Decimal14480684
Display P3color(display-p3 0.863 0.961 0.173)

Copy-ready code

/* CSS */
color: #dcf52c;
background-color: #dcf52c;
/* Tailwind (arbitrary) */
class="text-[#dcf52c] bg-[#dcf52c]"
/* SCSS */
$brand: #dcf52c;
/* SwiftUI */
Color(red: 0.863, green: 0.961, blue: 0.173)
/* Android */
Color.parseColor("#dcf52c")
/* Flutter */
Color(0xFFDCF52C)
/* Python / OpenCV (BGR) */
(44, 245, 220)

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

Accessibility — WCAG contrast

Aa
#dcf52c on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#dcf52c on black: 17.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE700
deuteranopia · #FFE942
tritanopia · #EAE7D2

Color scale — 50 to 950

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

#FCFDF2
#F8FBE5
#F2F9C3
#EDFA94
#E4F75E
#dcf52c
#CEEA0B
#ACC309
#899C07
#64700A
#3E4606
Base = 500Lightest = 50 · #FCFDF2Darkest = 950 · #3E4606
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F8FBE5;
  --brand-200: #F2F9C3;
  --brand-300: #EDFA94;
  --brand-400: #E4F75E;
  --brand-500: #dcf52c;
  --brand-600: #CEEA0B;
  --brand-700: #ACC309;
  --brand-800: #899C07;
  --brand-900: #64700A;
  --brand-950: #3E4606;
  --brand: #dcf52c;
  --brand-ink: #000000;
}

Colors that work with #dcf52c

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#919B4B
Captions on the surface
Accent#2842F9
Second voice, not a rival
Dark variant#6B7A06
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 #dcf52c

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#452CF5
Analogous left#F5AA2C
Analogous right#77F52C
Split-complement 1#2C77F5
Split-complement 2#AA2CF5
Triadic 1#2CDCF5
Triadic 2#F52CDC
Tetradic#2CF5AA

RGB percentages

Red86.3%
Green96.1%
Blue17.3%

CMYK percentages

Cyan10.2%
Magenta0.0%
Yellow82.0%
Key (black)3.9%

Color previews

#dcf52c text on a black background

contrast 17.14:1

Card sample

#dcf52c text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(220, 245, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(220, 245, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dcf52c;
background: linear-gradient(135deg, #dcf52c, #56F52C);

Monochromatic scale

Palettes built from #dcf52c

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.

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

#dcf52c, answered

What color is #dcf52c?

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

What is the RGB value of #dcf52c?

rgb(220, 245, 44) — 220 red, 245 green and 44 blue out of 255, or 86.3% / 96.1% / 17.3% by channel.

Is #dcf52c a light or a dark color?

It is a light color. Relative luminance is 0.8070 and perceived brightness is 88%, so black text on it reaches 17.14:1.

Should I use black or white text on #dcf52c?

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

What is the complementary color of #dcf52c?

#452CF5 sits directly opposite on the wheel. Softer options are the split-complements #2C77F5 and #AA2CF5, which give the same contrast with far less vibration.

What colors go well with #dcf52c?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #919B4B for secondary text, #2842F9 as an accent and #6B7A06 for hover and pressed states. For a palette, the analogous pair #F5AA2C and #77F52C stays calm, while #452CF5 is the loudest partner.

What is #dcf52c in CMYK for printing?

cmyk(10%, 0%, 82%, 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 #dcf52c warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F5C42C; nudged cooler, #92F72A.

Work with #dcf52c in the Color Lab