Skip to content

#d7eb6b

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

RGB
215, 235, 107
HSL
69°, 76%, 67%
CMYK
9, 0, 55, 8
Luminance
0.7493

At a glance

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

Hex
#d7eb6b
Hue
69°
yellow
Saturation
76%
electric
Lightness
67%
light
Brightness
92%
HSV value
Perceived
86%
weighted brightness
Luminance
0.7493
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.99:1
Closest name
Khaki
ΔE2000 8.1
Where it sits
Hue69° of 360°
Saturation76%
Lightness67%
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#d7eb6b
RGBrgb(215, 235, 107)
HSLhsl(69, 76%, 67%)
CMYKcmyk(9%, 0%, 55%, 8%)
LABlab(89.4 -24.3 58.9)
LCHlch(89.4 63.7 112.4)
OKLCHoklch(0.900 0.154 117.0)
Decimal14150507
Display P3color(display-p3 0.843 0.922 0.420)

Copy-ready code

/* CSS */
color: #d7eb6b;
background-color: #d7eb6b;
/* Tailwind (arbitrary) */
class="text-[#d7eb6b] bg-[#d7eb6b]"
/* SCSS */
$brand: #d7eb6b;
/* SwiftUI */
Color(red: 0.843, green: 0.922, blue: 0.420)
/* Android */
Color.parseColor("#d7eb6b")
/* Flutter */
Color(0xFFD7EB6B)
/* Python / OpenCV (BGR) */
(107, 235, 215)

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

Accessibility — WCAG contrast

Aa
#d7eb6b on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#d7eb6b on black: 15.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F9E05E
deuteranopia · #F7E173
tritanopia · #E2E0CF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d7eb6b 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
#F6F9E7
#EDF4C8
#E4F29C
#d7eb6b
#CAE439
#BAD81D
#9BB418
#7C9013
#5B6812
#39410B
Base = 400Lightest = 50 · #FAFCF3Darkest = 950 · #39410B
:root {
  --brand-50: #FAFCF3;
  --brand-100: #F6F9E7;
  --brand-200: #EDF4C8;
  --brand-300: #E4F29C;
  --brand-400: #d7eb6b;
  --brand-500: #CAE439;
  --brand-600: #BAD81D;
  --brand-700: #9BB418;
  --brand-800: #7C9013;
  --brand-900: #5B6812;
  --brand-950: #39410B;
  --brand: #d7eb6b;
  --brand-ink: #000000;
}

Colors that work with #d7eb6b

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#E6EDC0
Hairlines and dividers
Muted text#8E9B4B
Captions on the surface
Accent#6874EE
Second voice, not a rival
Dark variant#61700F
Hover, pressed, headers
Light variant#F9FCE9
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 #d7eb6b

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#7F6BEB
Analogous left#EBBF6B
Analogous right#97EB6B
Split-complement 1#6B97EB
Split-complement 2#BF6BEB
Triadic 1#6BD7EB
Triadic 2#EB6BD7
Tetradic#6BEBBF

RGB percentages

Red84.3%
Green92.2%
Blue42.0%

CMYK percentages

Cyan8.5%
Magenta0.0%
Yellow54.5%
Key (black)7.8%

Color previews

#d7eb6b text on a black background

contrast 15.99:1

Card sample

#d7eb6b text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 235, 107, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 235, 107, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7eb6b;
background: linear-gradient(135deg, #d7eb6b, #82EB6B);

Monochromatic scale

Palettes built from #d7eb6b

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.

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

#d7eb6b, answered

What color is #d7eb6b?

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

What is the RGB value of #d7eb6b?

rgb(215, 235, 107) — 215 red, 235 green and 107 blue out of 255, or 84.3% / 92.2% / 42% by channel.

Is #d7eb6b a light or a dark color?

It is a light color. Relative luminance is 0.7493 and perceived brightness is 86%, so black text on it reaches 15.99:1.

Should I use black or white text on #d7eb6b?

Black. It scores 15.99:1 against #d7eb6b, versus 1.31:1 for white — AAA at any size.

What is the complementary color of #d7eb6b?

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

What colors go well with #d7eb6b?

For interface work: #F9FAF4 as the surface, #E6EDC0 for borders, #8E9B4B for secondary text, #6874EE as an accent and #61700F for hover and pressed states. For a palette, the analogous pair #EBBF6B and #97EB6B stays calm, while #7F6BEB is the loudest partner.

What is #d7eb6b in CMYK for printing?

cmyk(9%, 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 #d7eb6b 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 #EBD06B; nudged cooler, #A8ED69.

Work with #d7eb6b in the Color Lab