Skip to content

#dfee7b

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

RGB
223, 238, 123
HSL
68°, 77%, 71%
CMYK
6, 0, 48, 7
Luminance
0.7827

At a glance

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

Hex
#dfee7b
Hue
68°
yellow
Saturation
77%
electric
Lightness
71%
light
Brightness
93%
HSV value
Perceived
88%
weighted brightness
Luminance
0.7827
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
16.65:1
Closest name
Khaki
ΔE2000 6.7
Where it sits
Hue68° of 360°
Saturation77%
Lightness71%
Temperature
Warm ← → Cool32% 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#dfee7b
RGBrgb(223, 238, 123)
HSLhsl(68, 77%, 71%)
CMYKcmyk(6%, 0%, 48%, 7%)
LABlab(90.9 -21.2 53.5)
LCHlch(90.9 57.6 111.6)
OKLCHoklch(0.914 0.141 115.4)
Decimal14675579
Display P3color(display-p3 0.875 0.933 0.482)

Copy-ready code

/* CSS */
color: #dfee7b;
background-color: #dfee7b;
/* Tailwind (arbitrary) */
class="text-[#dfee7b] bg-[#dfee7b]"
/* SCSS */
$brand: #dfee7b;
/* SwiftUI */
Color(red: 0.875, green: 0.933, blue: 0.482)
/* Android */
Color.parseColor("#dfee7b")
/* Flutter */
Color(0xFFDFEE7B)
/* Python / OpenCV (BGR) */
(123, 238, 223)

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

Accessibility — WCAG contrast

Aa
#dfee7b on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#dfee7b on black: 16.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCE471
deuteranopia · #FBE681
tritanopia · #EAE3D3

Color scale — 50 to 950

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

#FBFCF3
#F7F9E6
#EFF4C7
#E7F29C
#dfee7b
#CFE538
#C0D91C
#A0B517
#809113
#5D6912
#3A410B
Base = 400Lightest = 50 · #FBFCF3Darkest = 950 · #3A410B
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E6;
  --brand-200: #EFF4C7;
  --brand-300: #E7F29C;
  --brand-400: #dfee7b;
  --brand-500: #CFE538;
  --brand-600: #C0D91C;
  --brand-700: #A0B517;
  --brand-800: #809113;
  --brand-900: #5D6912;
  --brand-950: #3A410B;
  --brand: #dfee7b;
  --brand-ink: #000000;
}

Colors that work with #dfee7b

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#E7EDC0
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#7887F1
Second voice, not a rival
Dark variant#64710F
Hover, pressed, headers
Light variant#FAFCE8
Selected rows, tints
Dark surface#222414
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 #dfee7b

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#8A7BEE
Analogous left#EEC37B
Analogous right#A6EE7B
Split-complement 1#7BA6EE
Split-complement 2#C37BEE
Triadic 1#7BDFEE
Triadic 2#EE7BDF
Tetradic#7BEEC3

RGB percentages

Red87.5%
Green93.3%
Blue48.2%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow48.3%
Key (black)6.7%

Color previews

#dfee7b text on a black background

contrast 16.65:1

Card sample

#dfee7b text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 238, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 238, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfee7b;
background: linear-gradient(135deg, #dfee7b, #92EE7B);

Monochromatic scale

Palettes built from #dfee7b

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.

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

#dfee7b, answered

What color is #dfee7b?

#dfee7b is a light electric yellow, closest to Khaki (ΔE2000 6.7). It sits at 68° on the hue wheel with 77% saturation and 71% lightness, which reads as warm.

What is the RGB value of #dfee7b?

rgb(223, 238, 123) — 223 red, 238 green and 123 blue out of 255, or 87.5% / 93.3% / 48.2% by channel.

Is #dfee7b a light or a dark color?

It is a light color. Relative luminance is 0.7827 and perceived brightness is 88%, so black text on it reaches 16.65:1.

Should I use black or white text on #dfee7b?

Black. It scores 16.65:1 against #dfee7b, versus 1.26:1 for white — AAA at any size.

What is the complementary color of #dfee7b?

#8A7BEE sits directly opposite on the wheel. Softer options are the split-complements #7BA6EE and #C37BEE, which give the same contrast with far less vibration.

What colors go well with #dfee7b?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #909B4B for secondary text, #7887F1 as an accent and #64710F for hover and pressed states. For a palette, the analogous pair #EEC37B and #A6EE7B stays calm, while #8A7BEE is the loudest partner.

What is #dfee7b in CMYK for printing?

cmyk(6%, 0%, 48%, 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 #dfee7b warm or cool?

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

Work with #dfee7b in the Color Lab