Skip to content

#e4ab21

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

RGB
228, 171, 33
HSL
43°, 78%, 51%
CMYK
0, 25, 86, 11
Luminance
0.4573

At a glance

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

Hex
#e4ab21
Hue
43°
yellow
Saturation
78%
electric
Lightness
51%
balanced
Brightness
89%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4573
WCAG relative
Temperature
Warm
10/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.15:1
Closest name
Goldenrod
ΔE2000 2.1
Where it sits
Hue43° of 360°
Saturation78%
Lightness51%
Temperature
Warm ← → Cool10% 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#e4ab21
RGBrgb(228, 171, 33)
HSLhsl(43, 78%, 51%)
CMYKcmyk(0%, 25%, 86%, 11%)
LABlab(73.4 9.7 71.0)
LCHlch(73.4 71.7 82.2)
OKLCHoklch(0.774 0.152 83.0)
Decimal14986017
Display P3color(display-p3 0.894 0.671 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e4ab21 on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#e4ab21 on black: 10.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C3AC00
deuteranopia · #D0BA2A
tritanopia · #F89993

Color scale — 50 to 950

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

#FCF9F3
#F9F4E6
#F5E7C7
#F3D99B
#EDC669
#E7B337
#e4ab21
#B68716
#916C12
#695011
#42320B
Base = 600Lightest = 50 · #FCF9F3Darkest = 950 · #42320B
:root {
  --brand-50: #FCF9F3;
  --brand-100: #F9F4E6;
  --brand-200: #F5E7C7;
  --brand-300: #F3D99B;
  --brand-400: #EDC669;
  --brand-500: #E7B337;
  --brand-600: #e4ab21;
  --brand-700: #B68716;
  --brand-800: #916C12;
  --brand-900: #695011;
  --brand-950: #42320B;
  --brand: #e4ab21;
  --brand-ink: #000000;
}

Colors that work with #e4ab21

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#FAF9F4
Tinted page background
Border#EDE0C0
Hairlines and dividers
Muted text#9B834B
Captions on the surface
Accent#1C8BE9
Second voice, not a rival
Dark variant#72550E
Hover, pressed, headers
Light variant#FCF6E8
Selected rows, tints
Dark surface#242014
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 #e4ab21

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#215AE4
Analogous left#E44A21
Analogous right#BBE421
Split-complement 1#21BBE4
Split-complement 2#4A21E4
Triadic 1#21E4AB
Triadic 2#AB21E4
Tetradic#21E44A

RGB percentages

Red89.4%
Green67.1%
Blue12.9%

CMYK percentages

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

Color previews

#e4ab21 text on a black background

contrast 10.15:1

Card sample

#e4ab21 text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e4ab21

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.

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

#e4ab21, answered

What color is #e4ab21?

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

What is the RGB value of #e4ab21?

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

Is #e4ab21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4573 and perceived brightness is 71%, so black text on it reaches 10.15:1.

Should I use black or white text on #e4ab21?

Black. It scores 10.15:1 against #e4ab21, versus 2.07:1 for white — AAA at any size.

What is the complementary color of #e4ab21?

#215AE4 sits directly opposite on the wheel. Softer options are the split-complements #21BBE4 and #4A21E4, which give the same contrast with far less vibration.

What colors go well with #e4ab21?

For interface work: #FAF9F4 as the surface, #EDE0C0 for borders, #9B834B for secondary text, #1C8BE9 as an accent and #72550E for hover and pressed states. For a palette, the analogous pair #E44A21 and #BBE421 stays calm, while #215AE4 is the loudest partner.

What is #e4ab21 in CMYK for printing?

cmyk(0%, 25%, 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 #e4ab21 warm or cool?

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

Work with #e4ab21 in the Color Lab