Skip to content

#eef58f

a light, electric yellow · warm · closest name: Khaki

RGB
238, 245, 143
HSL
64°, 84%, 76%
CMYK
3, 0, 42, 4
Luminance
0.8547

At a glance

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

Hex
#eef58f
Hue
64°
yellow
Saturation
84%
electric
Lightness
76%
light
Brightness
96%
HSV value
Perceived
92%
weighted brightness
Luminance
0.8547
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
18.09:1
Closest name
Khaki
ΔE2000 5.1
Where it sits
Hue64° of 360°
Saturation84%
Lightness76%
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#eef58f
RGBrgb(238, 245, 143)
HSLhsl(64, 84%, 76%)
CMYKcmyk(3%, 0%, 42%, 4%)
LABlab(94.1 -16.9 48.2)
LCHlch(94.1 51.1 109.3)
OKLCHoklch(0.943 0.126 112.0)
Decimal15660431
Display P3color(display-p3 0.933 0.961 0.561)

Copy-ready code

/* CSS */
color: #eef58f;
background-color: #eef58f;
/* Tailwind (arbitrary) */
class="text-[#eef58f] bg-[#eef58f]"
/* SCSS */
$brand: #eef58f;
/* SwiftUI */
Color(red: 0.933, green: 0.961, blue: 0.561)
/* Android */
Color.parseColor("#eef58f")
/* Flutter */
Color(0xFFEEF58F)
/* Python / OpenCV (BGR) */
(143, 245, 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 #eef58f · 18.09:1
Use #000000AAA at every size.
Aa
White text · 1.16:1
AA fail · AA large fail · AAA fail
Aa
Black text · 18.09:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #eef58f as text scores 1.16:1 on white and 18.09:1 on black.

Accessibility — WCAG contrast

Aa
#eef58f on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#eef58f on black: 18.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFED87
deuteranopia · #FFEF94
tritanopia · #FAEADC

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #eef58f is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCFCF2
#F8FAE6
#F3F6C5
#eef58f
#E8F165
#E0ED31
#D3E114
#B0BB11
#8C960D
#666C0E
#404409
Base = 300Lightest = 50 · #FCFCF2Darkest = 950 · #404409
:root {
  --brand-50: #FCFCF2;
  --brand-100: #F8FAE6;
  --brand-200: #F3F6C5;
  --brand-300: #eef58f;
  --brand-400: #E8F165;
  --brand-500: #E0ED31;
  --brand-600: #D3E114;
  --brand-700: #B0BB11;
  --brand-800: #8C960D;
  --brand-900: #666C0E;
  --brand-950: #404409;
  --brand: #eef58f;
  --brand-ink: #000000;
}

Colors that work with #eef58f

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#EAEDC0
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#0D2DBF
Second voice, not a rival
Dark variant#6E750A
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 #eef58f

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
  • Card and section backgrounds
  • 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
  • White text placed on it
  • 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#968FF5
Analogous left#F5C98F
Analogous right#BBF58F
Split-complement 1#8FBBF5
Split-complement 2#C98FF5
Triadic 1#8FEEF5
Triadic 2#F58FEE
Tetradic#8FF5C9

RGB percentages

Red93.3%
Green96.1%
Blue56.1%

CMYK percentages

Cyan2.9%
Magenta0.0%
Yellow41.6%
Key (black)3.9%

Color previews

#eef58f text on a black background

contrast 18.09:1

Card sample

#eef58f text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(238, 245, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(238, 245, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eef58f;
background: linear-gradient(135deg, #eef58f, #AAF58F);

Monochromatic scale

Palettes built from #eef58f

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.

#eef58f 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#eef58f, answered

What color is #eef58f?

#eef58f is a light electric yellow, closest to Khaki (ΔE2000 5.1). It sits at 64° on the hue wheel with 84% saturation and 76% lightness, which reads as warm.

What is the RGB value of #eef58f?

rgb(238, 245, 143) — 238 red, 245 green and 143 blue out of 255, or 93.3% / 96.1% / 56.1% by channel.

Is #eef58f a light or a dark color?

It is a light color. Relative luminance is 0.8547 and perceived brightness is 92%, so black text on it reaches 18.09:1.

Should I use black or white text on #eef58f?

Black. It scores 18.09:1 against #eef58f, versus 1.16:1 for white — AAA at any size.

What is the complementary color of #eef58f?

#968FF5 sits directly opposite on the wheel. Softer options are the split-complements #8FBBF5 and #C98FF5, which give the same contrast with far less vibration.

What colors go well with #eef58f?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #959B4B for secondary text, #0D2DBF as an accent and #6E750A for hover and pressed states. For a palette, the analogous pair #F5C98F and #BBF58F stays calm, while #968FF5 is the loudest partner.

What is #eef58f in CMYK for printing?

cmyk(3%, 0%, 42%, 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 #eef58f 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 #F5D78F; nudged cooler, #C9F68E.

Work with #eef58f in the Color Lab