Skip to content

#fcf082

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

RGB
252, 240, 130
HSL
54°, 95%, 75%
CMYK
0, 5, 48, 1
Luminance
0.8463

At a glance

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

Hex
#fcf082
Hue
54°
yellow
Saturation
95%
electric
Lightness
75%
light
Brightness
99%
HSV value
Perceived
92%
weighted brightness
Luminance
0.8463
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.93:1
Closest name
Khaki
ΔE2000 3.5
Where it sits
Hue54° of 360°
Saturation95%
Lightness75%
Temperature
Warm ← → Cool20% 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#fcf082
RGBrgb(252, 240, 130)
HSLhsl(54, 95%, 75%)
CMYKcmyk(0%, 5%, 48%, 1%)
LABlab(93.7 -10.2 54.2)
LCHlch(93.7 55.1 100.7)
OKLCHoklch(0.942 0.132 103.0)
Decimal16576642
Display P3color(display-p3 0.988 0.941 0.510)

Copy-ready code

/* CSS */
color: #fcf082;
background-color: #fcf082;
/* Tailwind (arbitrary) */
class="text-[#fcf082] bg-[#fcf082]"
/* SCSS */
$brand: #fcf082;
/* SwiftUI */
Color(red: 0.988, green: 0.941, blue: 0.510)
/* Android */
Color.parseColor("#fcf082")
/* Flutter */
Color(0xFFFCF082)
/* Python / OpenCV (BGR) */
(130, 240, 252)

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

Accessibility — WCAG contrast

Aa
#fcf082 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fcf082 on black: 17.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE978
deuteranopia · #FFF087
tritanopia · #FFE3D6

Color scale — 50 to 950

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

#FDFCF1
#FCF9E4
#FAF5C2
#fcf082
#FBEB5B
#FAE524
#EFD806
#C7B405
#9F9004
#736808
#484105
Base = 300Lightest = 50 · #FDFCF1Darkest = 950 · #484105
:root {
  --brand-50: #FDFCF1;
  --brand-100: #FCF9E4;
  --brand-200: #FAF5C2;
  --brand-300: #fcf082;
  --brand-400: #FBEB5B;
  --brand-500: #FAE524;
  --brand-600: #EFD806;
  --brand-700: #C7B405;
  --brand-800: #9F9004;
  --brand-900: #736808;
  --brand-950: #484105;
  --brand: #fcf082;
  --brand-ink: #000000;
}

Colors that work with #fcf082

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#EDE8C0
Hairlines and dividers
Muted text#9B934B
Captions on the surface
Accent#0048CC
Second voice, not a rival
Dark variant#7D7103
Hover, pressed, headers
Light variant#FEFCE6
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 #fcf082

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#828EFC
Analogous left#FCB382
Analogous right#CBFC82
Split-complement 1#82CBFC
Split-complement 2#B382FC
Triadic 1#82FCF0
Triadic 2#F082FC
Tetradic#82FCB3

RGB percentages

Red98.8%
Green94.1%
Blue51.0%

CMYK percentages

Cyan0.0%
Magenta4.8%
Yellow48.4%
Key (black)1.2%

Color previews

#fcf082 text on a black background

contrast 17.93:1

Card sample

#fcf082 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 240, 130, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 240, 130, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcf082;
background: linear-gradient(135deg, #fcf082, #B7FC82);

Monochromatic scale

Palettes built from #fcf082

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.

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

#fcf082, answered

What color is #fcf082?

#fcf082 is a light electric yellow, closest to Khaki (ΔE2000 3.5). It sits at 54° on the hue wheel with 95% saturation and 75% lightness, which reads as warm.

What is the RGB value of #fcf082?

rgb(252, 240, 130) — 252 red, 240 green and 130 blue out of 255, or 98.8% / 94.1% / 51% by channel.

Is #fcf082 a light or a dark color?

It is a light color. Relative luminance is 0.8463 and perceived brightness is 92%, so black text on it reaches 17.93:1.

Should I use black or white text on #fcf082?

Black. It scores 17.93:1 against #fcf082, versus 1.17:1 for white — AAA at any size.

What is the complementary color of #fcf082?

#828EFC sits directly opposite on the wheel. Softer options are the split-complements #82CBFC and #B382FC, which give the same contrast with far less vibration.

What colors go well with #fcf082?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B934B for secondary text, #0048CC as an accent and #7D7103 for hover and pressed states. For a palette, the analogous pair #FCB382 and #CBFC82 stays calm, while #828EFC is the loudest partner.

What is #fcf082 in CMYK for printing?

cmyk(0%, 5%, 48%, 1%). 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 #fcf082 warm or cool?

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

Work with #fcf082 in the Color Lab