Skip to content

#cfef8b

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

RGB
207, 239, 139
HSL
79°, 76%, 74%
CMYK
13, 0, 42, 6
Luminance
0.7686

At a glance

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

Hex
#cfef8b
Hue
79°
green
Saturation
76%
electric
Lightness
74%
light
Brightness
94%
HSV value
Perceived
86%
weighted brightness
Luminance
0.7686
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Electric
Best ink
Black
16.37:1
Closest name
Khaki
ΔE2000 9.8
Where it sits
Hue79° of 360°
Saturation76%
Lightness74%
Temperature
Warm ← → Cool41% 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#cfef8b
RGBrgb(207, 239, 139)
HSLhsl(79, 76%, 74%)
CMYKcmyk(13%, 0%, 42%, 6%)
LABlab(90.3 -26.1 44.9)
LCHlch(90.3 51.9 120.2)
OKLCHoklch(0.907 0.131 123.5)
Decimal13627275
Display P3color(display-p3 0.812 0.937 0.545)

Copy-ready code

/* CSS */
color: #cfef8b;
background-color: #cfef8b;
/* Tailwind (arbitrary) */
class="text-[#cfef8b] bg-[#cfef8b]"
/* SCSS */
$brand: #cfef8b;
/* SwiftUI */
Color(red: 0.812, green: 0.937, blue: 0.545)
/* Android */
Color.parseColor("#cfef8b")
/* Flutter */
Color(0xFFCFEF8B)
/* Python / OpenCV (BGR) */
(139, 239, 207)

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

Accessibility — WCAG contrast

Aa
#cfef8b on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#cfef8b on black: 16.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F9E483
deuteranopia · #F5E390
tritanopia · #D6E6D7

Color scale — 50 to 950

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

#F9FCF3
#F3F9E7
#E6F4C8
#cfef8b
#C2EB6B
#ADE43A
#9CD71E
#82B319
#688F14
#4D6813
#30410C
Base = 300Lightest = 50 · #F9FCF3Darkest = 950 · #30410C
:root {
  --brand-50: #F9FCF3;
  --brand-100: #F3F9E7;
  --brand-200: #E6F4C8;
  --brand-300: #cfef8b;
  --brand-400: #C2EB6B;
  --brand-500: #ADE43A;
  --brand-600: #9CD71E;
  --brand-700: #82B319;
  --brand-800: #688F14;
  --brand-900: #4D6813;
  --brand-950: #30410C;
  --brand: #cfef8b;
  --brand-ink: #000000;
}

Colors that work with #cfef8b

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#F8FAF4
Tinted page background
Border#DEEDC0
Hairlines and dividers
Muted text#819B4B
Captions on the surface
Accent#2014B8
Second voice, not a rival
Dark variant#51700F
Hover, pressed, headers
Light variant#F6FCE9
Selected rows, tints
Dark surface#1F2414
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 #cfef8b

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#AB8BEF
Analogous left#EFDD8B
Analogous right#9DEF8B
Split-complement 1#8B9DEF
Split-complement 2#DD8BEF
Triadic 1#8BCFEF
Triadic 2#EF8BCF
Tetradic#8BEFDD

RGB percentages

Red81.2%
Green93.7%
Blue54.5%

CMYK percentages

Cyan13.4%
Magenta0.0%
Yellow41.8%
Key (black)6.3%

Color previews

#cfef8b text on a black background

contrast 16.37:1

Card sample

#cfef8b text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 239, 139, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 239, 139, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfef8b;
background: linear-gradient(135deg, #cfef8b, #8CEF8B);

Monochromatic scale

Palettes built from #cfef8b

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.

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

#cfef8b, answered

What color is #cfef8b?

#cfef8b is a light electric green, closest to Khaki (ΔE2000 9.8). It sits at 79° on the hue wheel with 76% saturation and 74% lightness, which reads as warm.

What is the RGB value of #cfef8b?

rgb(207, 239, 139) — 207 red, 239 green and 139 blue out of 255, or 81.2% / 93.7% / 54.5% by channel.

Is #cfef8b a light or a dark color?

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

Should I use black or white text on #cfef8b?

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

What is the complementary color of #cfef8b?

#AB8BEF sits directly opposite on the wheel. Softer options are the split-complements #8B9DEF and #DD8BEF, which give the same contrast with far less vibration.

What colors go well with #cfef8b?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #819B4B for secondary text, #2014B8 as an accent and #51700F for hover and pressed states. For a palette, the analogous pair #EFDD8B and #9DEF8B stays calm, while #AB8BEF is the loudest partner.

What is #cfef8b in CMYK for printing?

cmyk(13%, 0%, 42%, 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 #cfef8b warm or cool?

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

Work with #cfef8b in the Color Lab