Skip to content

#dcea21

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

RGB
220, 234, 33
HSL
64°, 83%, 52%
CMYK
6, 0, 86, 8
Luminance
0.7417

At a glance

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

Hex
#dcea21
Hue
64°
yellow
Saturation
83%
electric
Lightness
52%
balanced
Brightness
92%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7417
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.83:1
Closest name
Yellow
ΔE2000 6.2
Where it sits
Hue64° of 360°
Saturation83%
Lightness52%
Temperature
Warm ← → Cool28% 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#dcea21
RGBrgb(220, 234, 33)
HSLhsl(64, 83%, 52%)
CMYKcmyk(6%, 0%, 86%, 8%)
LABlab(89.0 -25.6 83.5)
LCHlch(89.0 87.3 107.0)
OKLCHoklch(0.896 0.196 114.1)
Decimal14477857
Display P3color(display-p3 0.863 0.918 0.129)

Copy-ready code

/* CSS */
color: #dcea21;
background-color: #dcea21;
/* Tailwind (arbitrary) */
class="text-[#dcea21] bg-[#dcea21]"
/* SCSS */
$brand: #dcea21;
/* SwiftUI */
Color(red: 0.863, green: 0.918, blue: 0.129)
/* Android */
Color.parseColor("#dcea21")
/* Flutter */
Color(0xFFDCEA21)
/* Python / OpenCV (BGR) */
(33, 234, 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 #dcea21 · 15.83:1
Use #000000AAA at every size.
Aa
White text · 1.33:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.83:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dcea21 as text scores 1.33:1 on white and 15.83:1 on black.

Accessibility — WCAG contrast

Aa
#dcea21 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#dcea21 on black: 15.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCDE00
deuteranopia · #FBE139
tritanopia · #EBDBC8

Color scale — 50 to 950

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

#FCFCF2
#F8FAE6
#F3F6C6
#EFF599
#E7F065
#dcea21
#D1E015
#AFBA12
#8C950E
#656C0F
#3F4309
Base = 500Lightest = 50 · #FCFCF2Darkest = 950 · #3F4309
:root {
  --brand-50: #FCFCF2;
  --brand-100: #F8FAE6;
  --brand-200: #F3F6C6;
  --brand-300: #EFF599;
  --brand-400: #E7F065;
  --brand-500: #dcea21;
  --brand-600: #D1E015;
  --brand-700: #AFBA12;
  --brand-800: #8C950E;
  --brand-900: #656C0F;
  --brand-950: #3F4309;
  --brand: #dcea21;
  --brand-ink: #000000;
}

Colors that work with #dcea21

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#959B4B
Captions on the surface
Accent#1C42EF
Second voice, not a rival
Dark variant#6D740B
Hover, pressed, headers
Light variant#FBFDE8
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 #dcea21

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#2F21EA
Analogous left#EA9421
Analogous right#78EA21
Split-complement 1#2178EA
Split-complement 2#9421EA
Triadic 1#21DCEA
Triadic 2#EA21DC
Tetradic#21EA94

RGB percentages

Red86.3%
Green91.8%
Blue12.9%

CMYK percentages

Cyan6.0%
Magenta0.0%
Yellow85.9%
Key (black)8.2%

Color previews

#dcea21 text on a black background

contrast 15.83:1

Card sample

#dcea21 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dcea21

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.

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

#dcea21, answered

What color is #dcea21?

#dcea21 is a balanced electric yellow, closest to Yellow (ΔE2000 6.2). It sits at 64° on the hue wheel with 83% saturation and 52% lightness, which reads as warm.

What is the RGB value of #dcea21?

rgb(220, 234, 33) — 220 red, 234 green and 33 blue out of 255, or 86.3% / 91.8% / 12.9% by channel.

Is #dcea21 a light or a dark color?

It is a light color. Relative luminance is 0.7417 and perceived brightness is 85%, so black text on it reaches 15.83:1.

Should I use black or white text on #dcea21?

Black. It scores 15.83:1 against #dcea21, versus 1.33:1 for white — AAA at any size.

What is the complementary color of #dcea21?

#2F21EA sits directly opposite on the wheel. Softer options are the split-complements #2178EA and #9421EA, which give the same contrast with far less vibration.

What colors go well with #dcea21?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #1C42EF as an accent and #6D740B for hover and pressed states. For a palette, the analogous pair #EA9421 and #78EA21 stays calm, while #2F21EA is the loudest partner.

What is #dcea21 in CMYK for printing?

cmyk(6%, 0%, 86%, 8%). 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 #dcea21 warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EAB121; nudged cooler, #93EC1F.

Work with #dcea21 in the Color Lab