Skip to content

#ffe8ac

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

RGB
255, 232, 172
HSL
43°, 100%, 84%
CMYK
0, 9, 33, 0
Luminance
0.8195

At a glance

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

Hex
#ffe8ac
Hue
43°
yellow
Saturation
100%
electric
Lightness
84%
light
Brightness
100%
HSV value
Perceived
91%
weighted brightness
Luminance
0.8195
WCAG relative
Temperature
Warm
11/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.39:1
Closest name
Moccasin
ΔE2000 3.7
Where it sits
Hue43° of 360°
Saturation100%
Lightness84%
Temperature
Warm ← → Cool11% 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#ffe8ac
RGBrgb(255, 232, 172)
HSLhsl(43, 100%, 84%)
CMYKcmyk(0%, 9%, 33%, 0%)
LABlab(92.5 -0.7 32.1)
LCHlch(92.5 32.1 91.2)
OKLCHoklch(0.936 0.080 89.5)
Decimal16771244
Display P3color(display-p3 1.000 0.910 0.675)

Copy-ready code

/* CSS */
color: #ffe8ac;
background-color: #ffe8ac;
/* Tailwind (arbitrary) */
class="text-[#ffe8ac] bg-[#ffe8ac]"
/* SCSS */
$brand: #ffe8ac;
/* SwiftUI */
Color(red: 1.000, green: 0.910, blue: 0.675)
/* Android */
Color.parseColor("#ffe8ac")
/* Flutter */
Color(0xFFFFE8AC)
/* Python / OpenCV (BGR) */
(172, 232, 255)

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

Accessibility — WCAG contrast

Aa
#ffe8ac on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#ffe8ac on black: 17.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F5E6A8
deuteranopia · #FBECAE
tritanopia · #FFDED8

Color scale — 50 to 950

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

#FEFAF1
#FCF5E3
#ffe8ac
#FFE08F
#FFD057
#FFC11F
#F5B100
#CC9400
#A37600
#765605
#493603
Base = 200Lightest = 50 · #FEFAF1Darkest = 950 · #493603
:root {
  --brand-50: #FEFAF1;
  --brand-100: #FCF5E3;
  --brand-200: #ffe8ac;
  --brand-300: #FFE08F;
  --brand-400: #FFD057;
  --brand-500: #FFC11F;
  --brand-600: #F5B100;
  --brand-700: #CC9400;
  --brand-800: #A37600;
  --brand-900: #765605;
  --brand-950: #493603;
  --brand: #ffe8ac;
  --brand-ink: #000000;
}

Colors that work with #ffe8ac

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#FAF9F4
Tinted page background
Border#EDE0C0
Hairlines and dividers
Muted text#9B854B
Captions on the surface
Accent#006CCC
Second voice, not a rival
Dark variant#805C00
Hover, pressed, headers
Light variant#FFF8E5
Selected rows, tints
Dark surface#242014
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 #ffe8ac

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#ACC3FF
Analogous left#FFBEAC
Analogous right#ECFFAC
Split-complement 1#ACECFF
Split-complement 2#BEACFF
Triadic 1#ACFFE8
Triadic 2#E8ACFF
Tetradic#ACFFBE

RGB percentages

Red100.0%
Green91.0%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta9.0%
Yellow32.5%
Key (black)0.0%

Color previews

#ffe8ac text on a black background

contrast 17.39:1

Card sample

#ffe8ac text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 232, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 232, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffe8ac;
background: linear-gradient(135deg, #ffe8ac, #DFFFAC);

Monochromatic scale

Palettes built from #ffe8ac

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.

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

#ffe8ac, answered

What color is #ffe8ac?

#ffe8ac is a light electric yellow, closest to Moccasin (ΔE2000 3.7). It sits at 43° on the hue wheel with 100% saturation and 84% lightness, which reads as warm.

What is the RGB value of #ffe8ac?

rgb(255, 232, 172) — 255 red, 232 green and 172 blue out of 255, or 100% / 91% / 67.5% by channel.

Is #ffe8ac a light or a dark color?

It is a light color. Relative luminance is 0.8195 and perceived brightness is 91%, so black text on it reaches 17.39:1.

Should I use black or white text on #ffe8ac?

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

What is the complementary color of #ffe8ac?

#ACC3FF sits directly opposite on the wheel. Softer options are the split-complements #ACECFF and #BEACFF, which give the same contrast with far less vibration.

What colors go well with #ffe8ac?

For interface work: #FAF9F4 as the surface, #EDE0C0 for borders, #9B854B for secondary text, #006CCC as an accent and #805C00 for hover and pressed states. For a palette, the analogous pair #FFBEAC and #ECFFAC stays calm, while #ACC3FF is the loudest partner.

What is #ffe8ac in CMYK for printing?

cmyk(0%, 9%, 33%, 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 #ffe8ac warm or cool?

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

Work with #ffe8ac in the Color Lab