Skip to content

#cefa2f

a balanced, electric green · warm · closest name: Green Yellow

RGB
206, 250, 47
HSL
73°, 95%, 58%
CMYK
18, 0, 81, 2
Luminance
0.8170

At a glance

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

Hex
#cefa2f
Hue
73°
green
Saturation
95%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
87%
weighted brightness
Luminance
0.8170
WCAG relative
Temperature
Warm
36/100 cool
Color family
Green
Tone
Electric
Best ink
Black
17.34:1
Closest name
Green Yellow
ΔE2000 5.4
Where it sits
Hue73° of 360°
Saturation95%
Lightness58%
Temperature
Warm ← → Cool36% 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#cefa2f
RGBrgb(206, 250, 47)
HSLhsl(73, 95%, 58%)
CMYKcmyk(18%, 0%, 81%, 2%)
LABlab(92.4 -38.1 83.0)
LCHlch(92.4 91.4 114.7)
OKLCHoklch(0.922 0.213 122.1)
Decimal13564463
Display P3color(display-p3 0.808 0.980 0.184)

Copy-ready code

/* CSS */
color: #cefa2f;
background-color: #cefa2f;
/* Tailwind (arbitrary) */
class="text-[#cefa2f] bg-[#cefa2f]"
/* SCSS */
$brand: #cefa2f;
/* SwiftUI */
Color(red: 0.808, green: 0.980, blue: 0.184)
/* Android */
Color.parseColor("#cefa2f")
/* Flutter */
Color(0xFFCEFA2F)
/* Python / OpenCV (BGR) */
(47, 250, 206)

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

Accessibility — WCAG contrast

Aa
#cefa2f on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#cefa2f on black: 17.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEA00
deuteranopia · #FFE946
tritanopia · #D9EDD6

Color scale — 50 to 950

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

#FBFDF1
#F6FCE4
#EEFAC2
#E5FC91
#D8FB5B
#cefa2f
#BDEF06
#9DC705
#7E9F04
#5C7308
#394805
Base = 500Lightest = 50 · #FBFDF1Darkest = 950 · #394805
:root {
  --brand-50: #FBFDF1;
  --brand-100: #F6FCE4;
  --brand-200: #EEFAC2;
  --brand-300: #E5FC91;
  --brand-400: #D8FB5B;
  --brand-500: #cefa2f;
  --brand-600: #BDEF06;
  --brand-700: #9DC705;
  --brand-800: #7E9F04;
  --brand-900: #5C7308;
  --brand-950: #394805;
  --brand: #cefa2f;
  --brand-ink: #000000;
}

Colors that work with #cefa2f

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#E3EDC0
Hairlines and dividers
Muted text#8A9B4B
Captions on the surface
Accent#2B32FE
Second voice, not a rival
Dark variant#627D03
Hover, pressed, headers
Light variant#F9FEE6
Selected rows, tints
Dark surface#212414
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 #cefa2f

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
  • 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
  • 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#5B2FFA
Analogous left#FAC02F
Analogous right#68FA2F
Split-complement 1#2F68FA
Split-complement 2#C02FFA
Triadic 1#2FCEFA
Triadic 2#FA2FCE
Tetradic#2FFAC0

RGB percentages

Red80.8%
Green98.0%
Blue18.4%

CMYK percentages

Cyan17.6%
Magenta0.0%
Yellow81.2%
Key (black)2.0%

Color previews

#cefa2f text on a black background

contrast 17.34:1

Card sample

#cefa2f text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 250, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 250, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cefa2f;
background: linear-gradient(135deg, #cefa2f, #47FA2F);

Monochromatic scale

Palettes built from #cefa2f

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.

#cefa2f 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
ButtonsLinksFocus statesCharts
Print note

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

#cefa2f, answered

What color is #cefa2f?

#cefa2f is a balanced electric green, closest to Green Yellow (ΔE2000 5.4). It sits at 73° on the hue wheel with 95% saturation and 58% lightness, which reads as warm.

What is the RGB value of #cefa2f?

rgb(206, 250, 47) — 206 red, 250 green and 47 blue out of 255, or 80.8% / 98% / 18.4% by channel.

Is #cefa2f a light or a dark color?

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

Should I use black or white text on #cefa2f?

Black. It scores 17.34:1 against #cefa2f, versus 1.21:1 for white — AAA at any size.

What is the complementary color of #cefa2f?

#5B2FFA sits directly opposite on the wheel. Softer options are the split-complements #2F68FA and #C02FFA, which give the same contrast with far less vibration.

What colors go well with #cefa2f?

For interface work: #F9FAF4 as the surface, #E3EDC0 for borders, #8A9B4B for secondary text, #2B32FE as an accent and #627D03 for hover and pressed states. For a palette, the analogous pair #FAC02F and #68FA2F stays calm, while #5B2FFA is the loudest partner.

What is #cefa2f in CMYK for printing?

cmyk(18%, 0%, 81%, 2%). 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 #cefa2f warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FADC2F; nudged cooler, #83FC2D.

Work with #cefa2f in the Color Lab