Skip to content

#f2df0a

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

RGB
242, 223, 10
HSL
55°, 92%, 49%
CMYK
0, 8, 96, 5
Luminance
0.7167

At a glance

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

Hex
#f2df0a
Hue
55°
yellow
Saturation
92%
electric
Lightness
49%
balanced
Brightness
95%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7167
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.33:1
Closest name
Gold
ΔE2000 5.1
Where it sits
Hue55° of 360°
Saturation92%
Lightness49%
Temperature
Warm ← → Cool21% 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#f2df0a
RGBrgb(242, 223, 10)
HSLhsl(55, 92%, 49%)
CMYKcmyk(0%, 8%, 96%, 5%)
LABlab(87.8 -11.4 86.4)
LCHlch(87.8 87.2 97.5)
OKLCHoklch(0.891 0.186 103.2)
Decimal15916810
Display P3color(display-p3 0.949 0.875 0.039)

Copy-ready code

/* CSS */
color: #f2df0a;
background-color: #f2df0a;
/* Tailwind (arbitrary) */
class="text-[#f2df0a] bg-[#f2df0a]"
/* SCSS */
$brand: #f2df0a;
/* SwiftUI */
Color(red: 0.949, green: 0.875, blue: 0.039)
/* Android */
Color.parseColor("#f2df0a")
/* Flutter */
Color(0xFFF2DF0A)
/* Python / OpenCV (BGR) */
(10, 223, 242)

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

Accessibility — WCAG contrast

Aa
#f2df0a on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#f2df0a on black: 15.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F5D700
deuteranopia · #FBE02B
tritanopia · #FFCEBE

Color scale — 50 to 950

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

#FDFCF2
#FBF9E4
#F9F5C3
#FBF293
#F8EC5D
#F6E527
#f2df0a
#C4B508
#9D9006
#716909
#474106
Base = 600Lightest = 50 · #FDFCF2Darkest = 950 · #474106
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF9E4;
  --brand-200: #F9F5C3;
  --brand-300: #FBF293;
  --brand-400: #F8EC5D;
  --brand-500: #F6E527;
  --brand-600: #f2df0a;
  --brand-700: #C4B508;
  --brand-800: #9D9006;
  --brand-900: #716909;
  --brand-950: #474106;
  --brand: #f2df0a;
  --brand-ink: #000000;
}

Colors that work with #f2df0a

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#FAFAF4
Tinted page background
Border#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#0555F7
Second voice, not a rival
Dark variant#7A7105
Hover, pressed, headers
Light variant#FEFCE7
Selected rows, tints
Dark surface#242314
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 #f2df0a

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#0A1DF2
Analogous left#F26B0A
Analogous right#91F20A
Split-complement 1#0A91F2
Split-complement 2#6B0AF2
Triadic 1#0AF2DF
Triadic 2#DF0AF2
Tetradic#0AF26B

RGB percentages

Red94.9%
Green87.5%
Blue3.9%

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow95.9%
Key (black)5.1%

Color previews

#f2df0a text on a black background

contrast 15.33:1

Card sample

#f2df0a text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 223, 10, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 223, 10, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2df0a;
background: linear-gradient(135deg, #f2df0a, #6AF20A);

Monochromatic scale

Palettes built from #f2df0a

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.

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

#f2df0a, answered

What color is #f2df0a?

#f2df0a is a balanced electric yellow, closest to Gold (ΔE2000 5.1). It sits at 55° on the hue wheel with 92% saturation and 49% lightness, which reads as warm.

What is the RGB value of #f2df0a?

rgb(242, 223, 10) — 242 red, 223 green and 10 blue out of 255, or 94.9% / 87.5% / 3.9% by channel.

Is #f2df0a a light or a dark color?

It is a light color. Relative luminance is 0.7167 and perceived brightness is 85%, so black text on it reaches 15.33:1.

Should I use black or white text on #f2df0a?

Black. It scores 15.33:1 against #f2df0a, versus 1.37:1 for white — AAA at any size.

What is the complementary color of #f2df0a?

#0A1DF2 sits directly opposite on the wheel. Softer options are the split-complements #0A91F2 and #6B0AF2, which give the same contrast with far less vibration.

What colors go well with #f2df0a?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #0555F7 as an accent and #7A7105 for hover and pressed states. For a palette, the analogous pair #F26B0A and #91F20A stays calm, while #0A1DF2 is the loudest partner.

What is #f2df0a in CMYK for printing?

cmyk(0%, 8%, 96%, 5%). 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 #f2df0a warm or cool?

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

Work with #f2df0a in the Color Lab