Skip to content

#e4cc21

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

RGB
228, 204, 33
HSL
53°, 78%, 51%
CMYK
0, 11, 86, 11
Luminance
0.5979

At a glance

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

Hex
#e4cc21
Hue
53°
yellow
Saturation
78%
electric
Lightness
51%
balanced
Brightness
89%
HSV value
Perceived
79%
weighted brightness
Luminance
0.5979
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
12.96:1
Closest name
Gold
ΔE2000 5.2
Where it sits
Hue53° of 360°
Saturation78%
Lightness51%
Temperature
Warm ← → Cool19% 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#e4cc21
RGBrgb(228, 204, 33)
HSLhsl(53, 78%, 51%)
CMYKcmyk(0%, 11%, 86%, 11%)
LABlab(81.7 -7.5 77.8)
LCHlch(81.7 78.2 95.5)
OKLCHoklch(0.840 0.169 100.3)
Decimal14994465
Display P3color(display-p3 0.894 0.800 0.129)

Copy-ready code

/* CSS */
color: #e4cc21;
background-color: #e4cc21;
/* Tailwind (arbitrary) */
class="text-[#e4cc21] bg-[#e4cc21]"
/* SCSS */
$brand: #e4cc21;
/* SwiftUI */
Color(red: 0.894, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#e4cc21")
/* Flutter */
Color(0xFFE4CC21)
/* Python / OpenCV (BGR) */
(33, 204, 228)

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

Accessibility — WCAG contrast

Aa
#e4cc21 on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#e4cc21 on black: 12.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E1C600
deuteranopia · #E7CF32
tritanopia · #F6BCAE

Color scale — 50 to 950

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

#FCFBF3
#F9F7E6
#F5EFC7
#F3E89B
#EDDC69
#E7D137
#e4cc21
#B6A216
#918212
#695E11
#423B0B
Base = 600Lightest = 50 · #FCFBF3Darkest = 950 · #423B0B
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F7E6;
  --brand-200: #F5EFC7;
  --brand-300: #F3E89B;
  --brand-400: #EDDC69;
  --brand-500: #E7D137;
  --brand-600: #e4cc21;
  --brand-700: #B6A216;
  --brand-800: #918212;
  --brand-900: #695E11;
  --brand-950: #423B0B;
  --brand: #e4cc21;
  --brand-ink: #000000;
}

Colors that work with #e4cc21

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#EDE7C0
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#1C69E9
Second voice, not a rival
Dark variant#72650E
Hover, pressed, headers
Light variant#FCFAE8
Selected rows, tints
Dark surface#242214
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 #e4cc21

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#2139E4
Analogous left#E46B21
Analogous right#9BE421
Split-complement 1#219BE4
Split-complement 2#6B21E4
Triadic 1#21E4CC
Triadic 2#CC21E4
Tetradic#21E46B

RGB percentages

Red89.4%
Green80.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.5%
Yellow85.5%
Key (black)10.6%

Color previews

#e4cc21 text on a black background

contrast 12.96:1

Card sample

#e4cc21 text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(228, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(228, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e4cc21;
background: linear-gradient(135deg, #e4cc21, #7AE421);

Monochromatic scale

Palettes built from #e4cc21

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.

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

#e4cc21, answered

What color is #e4cc21?

#e4cc21 is a balanced electric yellow, closest to Gold (ΔE2000 5.2). It sits at 53° on the hue wheel with 78% saturation and 51% lightness, which reads as warm.

What is the RGB value of #e4cc21?

rgb(228, 204, 33) — 228 red, 204 green and 33 blue out of 255, or 89.4% / 80% / 12.9% by channel.

Is #e4cc21 a light or a dark color?

It is a light color. Relative luminance is 0.5979 and perceived brightness is 79%, so black text on it reaches 12.96:1.

Should I use black or white text on #e4cc21?

Black. It scores 12.96:1 against #e4cc21, versus 1.62:1 for white — AAA at any size.

What is the complementary color of #e4cc21?

#2139E4 sits directly opposite on the wheel. Softer options are the split-complements #219BE4 and #6B21E4, which give the same contrast with far less vibration.

What colors go well with #e4cc21?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #1C69E9 as an accent and #72650E for hover and pressed states. For a palette, the analogous pair #E46B21 and #9BE421 stays calm, while #2139E4 is the loudest partner.

What is #e4cc21 in CMYK for printing?

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

Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E49C21; nudged cooler, #B6E61F.

Work with #e4cc21 in the Color Lab