Skip to content

#dfec6a

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

RGB
223, 236, 106
HSL
66°, 77%, 67%
CMYK
6, 0, 55, 8
Luminance
0.7672

At a glance

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

Hex
#dfec6a
Hue
66°
yellow
Saturation
77%
electric
Lightness
67%
light
Brightness
93%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7672
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
16.34:1
Closest name
Khaki
ΔE2000 7.1
Where it sits
Hue66° of 360°
Saturation77%
Lightness67%
Temperature
Warm ← → Cool30% 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#dfec6a
RGBrgb(223, 236, 106)
HSLhsl(66, 77%, 67%)
CMYKcmyk(6%, 0%, 55%, 8%)
LABlab(90.2 -21.7 60.4)
LCHlch(90.2 64.2 109.8)
OKLCHoklch(0.908 0.154 114.3)
Decimal14675050
Display P3color(display-p3 0.875 0.925 0.416)

Copy-ready code

/* CSS */
color: #dfec6a;
background-color: #dfec6a;
/* Tailwind (arbitrary) */
class="text-[#dfec6a] bg-[#dfec6a]"
/* SCSS */
$brand: #dfec6a;
/* SwiftUI */
Color(red: 0.875, green: 0.925, blue: 0.416)
/* Android */
Color.parseColor("#dfec6a")
/* Flutter */
Color(0xFFDFEC6A)
/* Python / OpenCV (BGR) */
(106, 236, 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 #dfec6a · 16.34:1
Use #000000AAA at every size.
Aa
White text · 1.28:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.34:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dfec6a as text scores 1.28:1 on white and 16.34:1 on black.

Accessibility — WCAG contrast

Aa
#dfec6a on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#dfec6a on black: 16.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FBE25D
deuteranopia · #FAE472
tritanopia · #ECE0CF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dfec6a 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
#F0F4C7
#EAF29B
#dfec6a
#D4E638
#C6D91C
#A5B517
#849112
#606912
#3C410B
Base = 400Lightest = 50 · #FBFCF3Darkest = 950 · #3C410B
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E6;
  --brand-200: #F0F4C7;
  --brand-300: #EAF29B;
  --brand-400: #dfec6a;
  --brand-500: #D4E638;
  --brand-600: #C6D91C;
  --brand-700: #A5B517;
  --brand-800: #849112;
  --brand-900: #606912;
  --brand-950: #3C410B;
  --brand: #dfec6a;
  --brand-ink: #000000;
}

Colors that work with #dfec6a

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#E8EDC0
Hairlines and dividers
Muted text#939B4B
Captions on the surface
Accent#677BEF
Second voice, not a rival
Dark variant#67710E
Hover, pressed, headers
Light variant#FAFCE8
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 #dfec6a

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#776AEC
Analogous left#ECB86A
Analogous right#9EEC6A
Split-complement 1#6A9EEC
Split-complement 2#B86AEC
Triadic 1#6ADFEC
Triadic 2#EC6ADF
Tetradic#6AECB8

RGB percentages

Red87.5%
Green92.5%
Blue41.6%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow55.1%
Key (black)7.5%

Color previews

#dfec6a text on a black background

contrast 16.34:1

Card sample

#dfec6a text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 236, 106, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 236, 106, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfec6a;
background: linear-gradient(135deg, #dfec6a, #88EC6A);

Monochromatic scale

Palettes built from #dfec6a

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.

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

#dfec6a, answered

What color is #dfec6a?

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

What is the RGB value of #dfec6a?

rgb(223, 236, 106) — 223 red, 236 green and 106 blue out of 255, or 87.5% / 92.5% / 41.6% by channel.

Is #dfec6a a light or a dark color?

It is a light color. Relative luminance is 0.7672 and perceived brightness is 87%, so black text on it reaches 16.34:1.

Should I use black or white text on #dfec6a?

Black. It scores 16.34:1 against #dfec6a, versus 1.28:1 for white — AAA at any size.

What is the complementary color of #dfec6a?

#776AEC sits directly opposite on the wheel. Softer options are the split-complements #6A9EEC and #B86AEC, which give the same contrast with far less vibration.

What colors go well with #dfec6a?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #939B4B for secondary text, #677BEF as an accent and #67710E for hover and pressed states. For a palette, the analogous pair #ECB86A and #9EEC6A stays calm, while #776AEC is the loudest partner.

What is #dfec6a in CMYK for printing?

cmyk(6%, 0%, 55%, 8%). 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 #dfec6a warm or cool?

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

Work with #dfec6a in the Color Lab