Skip to content

#eee40f

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

RGB
238, 228, 15
HSL
57°, 88%, 50%
CMYK
0, 4, 94, 7
Luminance
0.7370

At a glance

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

Hex
#eee40f
Hue
57°
yellow
Saturation
88%
electric
Lightness
50%
balanced
Brightness
93%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7370
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.74:1
Closest name
Yellow
ΔE2000 5.8
Where it sits
Hue57° of 360°
Saturation88%
Lightness50%
Temperature
Warm ← → Cool23% 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#eee40f
RGBrgb(238, 228, 15)
HSLhsl(57, 88%, 50%)
CMYKcmyk(0%, 4%, 94%, 7%)
LABlab(88.8 -15.5 86.5)
LCHlch(88.8 87.9 100.1)
OKLCHoklch(0.898 0.190 106.4)
Decimal15655951
Display P3color(display-p3 0.933 0.894 0.059)

Copy-ready code

/* CSS */
color: #eee40f;
background-color: #eee40f;
/* Tailwind (arbitrary) */
class="text-[#eee40f] bg-[#eee40f]"
/* SCSS */
$brand: #eee40f;
/* SwiftUI */
Color(red: 0.933, green: 0.894, blue: 0.059)
/* Android */
Color.parseColor("#eee40f")
/* Flutter */
Color(0xFFEEE40F)
/* Python / OpenCV (BGR) */
(15, 228, 238)

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

Accessibility — WCAG contrast

Aa
#eee40f on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#eee40f on black: 15.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F9DB00
deuteranopia · #FDE22E
tritanopia · #FFD4C2

Color scale — 50 to 950

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

#FDFCF2
#FAF9E5
#F8F5C4
#F8F495
#F5EE61
#F2E92C
#eee40f
#C0B80C
#99930A
#6F6A0C
#454207
Base = 600Lightest = 50 · #FDFCF2Darkest = 950 · #454207
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FAF9E5;
  --brand-200: #F8F5C4;
  --brand-300: #F8F495;
  --brand-400: #F5EE61;
  --brand-500: #F2E92C;
  --brand-600: #eee40f;
  --brand-700: #C0B80C;
  --brand-800: #99930A;
  --brand-900: #6F6A0C;
  --brand-950: #454207;
  --brand: #eee40f;
  --brand-ink: #000000;
}

Colors that work with #eee40f

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#EDEBC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#0A4FF3
Second voice, not a rival
Dark variant#787308
Hover, pressed, headers
Light variant#FDFCE7
Selected rows, tints
Dark surface#242414
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 #eee40f

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#0F19EE
Analogous left#EE740F
Analogous right#89EE0F
Split-complement 1#0F89EE
Split-complement 2#740FEE
Triadic 1#0FEEE4
Triadic 2#E40FEE
Tetradic#0FEE74

RGB percentages

Red93.3%
Green89.4%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta4.2%
Yellow93.7%
Key (black)6.7%

Color previews

#eee40f text on a black background

contrast 15.74:1

Card sample

#eee40f text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(238, 228, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(238, 228, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eee40f;
background: linear-gradient(135deg, #eee40f, #63EE0F);

Monochromatic scale

Palettes built from #eee40f

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.

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

#eee40f, answered

What color is #eee40f?

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

What is the RGB value of #eee40f?

rgb(238, 228, 15) — 238 red, 228 green and 15 blue out of 255, or 93.3% / 89.4% / 5.9% by channel.

Is #eee40f a light or a dark color?

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

Should I use black or white text on #eee40f?

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

What is the complementary color of #eee40f?

#0F19EE sits directly opposite on the wheel. Softer options are the split-complements #0F89EE and #740FEE, which give the same contrast with far less vibration.

What colors go well with #eee40f?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #0A4FF3 as an accent and #787308 for hover and pressed states. For a palette, the analogous pair #EE740F and #89EE0F stays calm, while #0F19EE is the loudest partner.

What is #eee40f in CMYK for printing?

cmyk(0%, 4%, 94%, 7%). 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 #eee40f warm or cool?

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

Work with #eee40f in the Color Lab