Skip to content

#dcef7d

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

RGB
220, 239, 125
HSL
70°, 78%, 71%
CMYK
8, 0, 48, 6
Luminance
0.7843

At a glance

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

Hex
#dcef7d
Hue
70°
green
Saturation
78%
electric
Lightness
71%
light
Brightness
94%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7843
WCAG relative
Temperature
Warm
33/100 cool
Color family
Green
Tone
Electric
Best ink
Black
16.69:1
Closest name
Khaki
ΔE2000 7.4
Where it sits
Hue70° of 360°
Saturation78%
Lightness71%
Temperature
Warm ← → Cool33% 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#dcef7d
RGBrgb(220, 239, 125)
HSLhsl(70, 78%, 71%)
CMYKcmyk(8%, 0%, 48%, 6%)
LABlab(91.0 -22.7 52.6)
LCHlch(91.0 57.3 113.3)
OKLCHoklch(0.914 0.141 117.1)
Decimal14479229
Display P3color(display-p3 0.863 0.937 0.490)

Copy-ready code

/* CSS */
color: #dcef7d;
background-color: #dcef7d;
/* Tailwind (arbitrary) */
class="text-[#dcef7d] bg-[#dcef7d]"
/* SCSS */
$brand: #dcef7d;
/* SwiftUI */
Color(red: 0.863, green: 0.937, blue: 0.490)
/* Android */
Color.parseColor("#dcef7d")
/* Flutter */
Color(0xFFDCEF7D)
/* Python / OpenCV (BGR) */
(125, 239, 220)

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

Accessibility — WCAG contrast

Aa
#dcef7d on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#dcef7d on black: 16.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FCE573
deuteranopia · #FAE683
tritanopia · #E7E4D5

Color scale — 50 to 950

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

#FAFCF3
#F6F9E6
#EDF5C7
#E4F39B
#dcef7d
#C9E637
#BADA1B
#9BB616
#7C9112
#5B6911
#39420B
Base = 400Lightest = 50 · #FAFCF3Darkest = 950 · #39420B
:root {
  --brand-50: #FAFCF3;
  --brand-100: #F6F9E6;
  --brand-200: #EDF5C7;
  --brand-300: #E4F39B;
  --brand-400: #dcef7d;
  --brand-500: #C9E637;
  --brand-600: #BADA1B;
  --brand-700: #9BB616;
  --brand-800: #7C9112;
  --brand-900: #5B6911;
  --brand-950: #39420B;
  --brand: #dcef7d;
  --brand-ink: #000000;
}

Colors that work with #dcef7d

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#F9FAF4
Tinted page background
Border#E5EDC0
Hairlines and dividers
Muted text#8E9B4B
Captions on the surface
Accent#7A84F2
Second voice, not a rival
Dark variant#61720E
Hover, pressed, headers
Light variant#F9FCE8
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 #dcef7d

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
  • 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#907DEF
Analogous left#EFC97D
Analogous right#A3EF7D
Split-complement 1#7DA3EF
Split-complement 2#C97DEF
Triadic 1#7DDCEF
Triadic 2#EF7DDC
Tetradic#7DEFC9

RGB percentages

Red86.3%
Green93.7%
Blue49.0%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow47.7%
Key (black)6.3%

Color previews

#dcef7d text on a black background

contrast 16.69:1

Card sample

#dcef7d text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(220, 239, 125, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(220, 239, 125, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dcef7d;
background: linear-gradient(135deg, #dcef7d, #90EF7D);

Monochromatic scale

Palettes built from #dcef7d

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.

#dcef7d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#dcef7d, answered

What color is #dcef7d?

#dcef7d is a light electric green, closest to Khaki (ΔE2000 7.4). It sits at 70° on the hue wheel with 78% saturation and 71% lightness, which reads as warm.

What is the RGB value of #dcef7d?

rgb(220, 239, 125) — 220 red, 239 green and 125 blue out of 255, or 86.3% / 93.7% / 49% by channel.

Is #dcef7d a light or a dark color?

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

Should I use black or white text on #dcef7d?

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

What is the complementary color of #dcef7d?

#907DEF sits directly opposite on the wheel. Softer options are the split-complements #7DA3EF and #C97DEF, which give the same contrast with far less vibration.

What colors go well with #dcef7d?

For interface work: #F9FAF4 as the surface, #E5EDC0 for borders, #8E9B4B for secondary text, #7A84F2 as an accent and #61720E for hover and pressed states. For a palette, the analogous pair #EFC97D and #A3EF7D stays calm, while #907DEF is the loudest partner.

What is #dcef7d in CMYK for printing?

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

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

Work with #dcef7d in the Color Lab