Skip to content

#dfed6c

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

RGB
223, 237, 108
HSL
67°, 78%, 68%
CMYK
6, 0, 54, 7
Luminance
0.7734

At a glance

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

Hex
#dfed6c
Hue
67°
yellow
Saturation
78%
electric
Lightness
68%
light
Brightness
93%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7734
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
16.47:1
Closest name
Khaki
ΔE2000 7.2
Where it sits
Hue67° of 360°
Saturation78%
Lightness68%
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#dfed6c
RGBrgb(223, 237, 108)
HSLhsl(67, 78%, 68%)
CMYKcmyk(6%, 0%, 54%, 7%)
LABlab(90.5 -22.0 59.9)
LCHlch(90.5 63.8 110.2)
OKLCHoklch(0.910 0.154 114.7)
Decimal14675308
Display P3color(display-p3 0.875 0.929 0.424)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfed6c on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#dfed6c on black: 16.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCE35F
deuteranopia · #FBE573
tritanopia · #EBE1D1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dfed6c 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
#F0F5C7
#E9F39B
#dfed6c
#D4E737
#C5DA1B
#A4B616
#849112
#606911
#3C420B
Base = 400Lightest = 50 · #FBFCF3Darkest = 950 · #3C420B
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E6;
  --brand-200: #F0F5C7;
  --brand-300: #E9F39B;
  --brand-400: #dfed6c;
  --brand-500: #D4E737;
  --brand-600: #C5DA1B;
  --brand-700: #A4B616;
  --brand-800: #849112;
  --brand-900: #606911;
  --brand-950: #3C420B;
  --brand: #dfed6c;
  --brand-ink: #000000;
}

Colors that work with #dfed6c

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#929B4B
Captions on the surface
Accent#687CF0
Second voice, not a rival
Dark variant#67720E
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 #dfed6c

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#7A6CED
Analogous left#EDBA6C
Analogous right#9EED6C
Split-complement 1#6C9EED
Split-complement 2#BA6CED
Triadic 1#6CDFED
Triadic 2#ED6CDF
Tetradic#6CEDBA

RGB percentages

Red87.5%
Green92.9%
Blue42.4%

CMYK percentages

Cyan5.9%
Magenta0.0%
Yellow54.4%
Key (black)7.1%

Color previews

#dfed6c text on a black background

contrast 16.47:1

Card sample

#dfed6c text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 237, 108, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 237, 108, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfed6c;
background: linear-gradient(135deg, #dfed6c, #89ED6C);

Monochromatic scale

Palettes built from #dfed6c

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.

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

#dfed6c, answered

What color is #dfed6c?

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

What is the RGB value of #dfed6c?

rgb(223, 237, 108) — 223 red, 237 green and 108 blue out of 255, or 87.5% / 92.9% / 42.4% by channel.

Is #dfed6c a light or a dark color?

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

Should I use black or white text on #dfed6c?

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

What is the complementary color of #dfed6c?

#7A6CED sits directly opposite on the wheel. Softer options are the split-complements #6C9EED and #BA6CED, which give the same contrast with far less vibration.

What colors go well with #dfed6c?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #687CF0 as an accent and #67720E for hover and pressed states. For a palette, the analogous pair #EDBA6C and #9EED6C stays calm, while #7A6CED is the loudest partner.

What is #dfed6c in CMYK for printing?

cmyk(6%, 0%, 54%, 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 #dfed6c 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 #EDCC6C; nudged cooler, #B0EF6A.

Work with #dfed6c in the Color Lab