Skip to content

#feba2f

a balanced, electric yellow · warm · closest name: Orange

RGB
254, 186, 47
HSL
40°, 99%, 59%
CMYK
0, 27, 82, 0
Luminance
0.5639

At a glance

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

Hex
#feba2f
Hue
40°
yellow
Saturation
99%
electric
Lightness
59%
balanced
Brightness
100%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5639
WCAG relative
Temperature
Warm
9/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
12.28:1
Closest name
Orange
ΔE2000 6.6
Where it sits
Hue40° of 360°
Saturation99%
Lightness59%
Temperature
Warm ← → Cool9% 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#feba2f
RGBrgb(254, 186, 47)
HSLhsl(40, 99%, 59%)
CMYKcmyk(0%, 27%, 82%, 0%)
LABlab(79.8 13.3 73.6)
LCHlch(79.8 74.8 79.8)
OKLCHoklch(0.831 0.160 79.7)
Decimal16693807
Display P3color(display-p3 0.996 0.729 0.184)

Copy-ready code

/* CSS */
color: #feba2f;
background-color: #feba2f;
/* Tailwind (arbitrary) */
class="text-[#feba2f] bg-[#feba2f]"
/* SCSS */
$brand: #feba2f;
/* SwiftUI */
Color(red: 0.996, green: 0.729, blue: 0.184)
/* Android */
Color.parseColor("#feba2f")
/* Flutter */
Color(0xFFFEBA2F)
/* Python / OpenCV (BGR) */
(47, 186, 254)

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

Accessibility — WCAG contrast

Aa
#feba2f on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#feba2f on black: 12.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5BC08
deuteranopia · #E5CD36
tritanopia · #FFA6A0

Color scale — 50 to 950

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

#FEF9F1
#FCF4E3
#FBE8C0
#FEDA8F
#FEC758
#feba2f
#F4A401
#CB8901
#A26D01
#755005
#493203
Base = 500Lightest = 50 · #FEF9F1Darkest = 950 · #493203
:root {
  --brand-50: #FEF9F1;
  --brand-100: #FCF4E3;
  --brand-200: #FBE8C0;
  --brand-300: #FEDA8F;
  --brand-400: #FEC758;
  --brand-500: #feba2f;
  --brand-600: #F4A401;
  --brand-700: #CB8901;
  --brand-800: #A26D01;
  --brand-900: #755005;
  --brand-950: #493203;
  --brand: #feba2f;
  --brand-ink: #000000;
}

Colors that work with #feba2f

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#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B814B
Captions on the surface
Accent#0076CC
Second voice, not a rival
Dark variant#7F5501
Hover, pressed, headers
Light variant#FFF7E6
Selected rows, tints
Dark surface#241F14
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 #feba2f

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
  • 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#2F73FE
Analogous left#FE522F
Analogous right#DAFE2F
Split-complement 1#2FDAFE
Split-complement 2#522FFE
Triadic 1#2FFEBA
Triadic 2#BA2FFE
Tetradic#2FFE52

RGB percentages

Red99.6%
Green72.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow81.5%
Key (black)0.4%

Color previews

#feba2f text on a black background

contrast 12.28:1

Card sample

#feba2f text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #feba2f

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.

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

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

#feba2f, answered

What color is #feba2f?

#feba2f is a balanced electric yellow, closest to Orange (ΔE2000 6.6). It sits at 40° on the hue wheel with 99% saturation and 59% lightness, which reads as warm.

What is the RGB value of #feba2f?

rgb(254, 186, 47) — 254 red, 186 green and 47 blue out of 255, or 99.6% / 72.9% / 18.4% by channel.

Is #feba2f a light or a dark color?

It is a light color. Relative luminance is 0.5639 and perceived brightness is 78%, so black text on it reaches 12.28:1.

Should I use black or white text on #feba2f?

Black. It scores 12.28:1 against #feba2f, versus 1.71:1 for white — AAA at any size.

What is the complementary color of #feba2f?

#2F73FE sits directly opposite on the wheel. Softer options are the split-complements #2FDAFE and #522FFE, which give the same contrast with far less vibration.

What colors go well with #feba2f?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B814B for secondary text, #0076CC as an accent and #7F5501 for hover and pressed states. For a palette, the analogous pair #FE522F and #DAFE2F stays calm, while #2F73FE is the loudest partner.

What is #feba2f in CMYK for printing?

cmyk(0%, 27%, 82%, 0%). 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 #feba2f warm or cool?

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

Work with #feba2f in the Color Lab