Skip to content

#ceac00

a dark, electric yellow · warm · closest name: Goldenrod

RGB
206, 172, 0
HSL
50°, 100%, 40%
CMYK
0, 17, 100, 19
Luminance
0.4263

At a glance

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

Hex
#ceac00
Hue
50°
yellow
Saturation
100%
electric
Lightness
40%
dark
Brightness
81%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4263
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.53:1
Closest name
Goldenrod
ΔE2000 6
Where it sits
Hue50° of 360°
Saturation100%
Lightness40%
Temperature
Warm ← → Cool17% 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#ceac00
RGBrgb(206, 172, 0)
HSLhsl(50, 100%, 40%)
CMYKcmyk(0%, 17%, 100%, 19%)
LABlab(71.3 -1.0 74.0)
LCHlch(71.3 74.0 90.7)
OKLCHoklch(0.752 0.154 94.6)
Decimal13544448
Display P3color(display-p3 0.808 0.675 0.000)

Copy-ready code

/* CSS */
color: #ceac00;
background-color: #ceac00;
/* Tailwind (arbitrary) */
class="text-[#ceac00] bg-[#ceac00]"
/* SCSS */
$brand: #ceac00;
/* SwiftUI */
Color(red: 0.808, green: 0.675, blue: 0.000)
/* Android */
Color.parseColor("#ceac00")
/* Flutter */
Color(0xFFCEAC00)
/* Python / OpenCV (BGR) */
(0, 172, 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 #ceac00 · 9.53:1
Use #000000AAA at every size.
Aa
White text · 2.20:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.53:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ceac00 as text scores 2.20:1 on white and 9.53:1 on black.

Accessibility — WCAG contrast

Aa
#ceac00 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#ceac00 on black: 9.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0A900
deuteranopia · #C9B31A
tritanopia · #E09D92

Color scale — 50 to 950

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

#FEFCF1
#FCF8E3
#FCF2C0
#FFEC8F
#FFE357
#FFDA1F
#F5CC00
#ceac00
#A38800
#766305
#493E03
Base = 700Lightest = 50 · #FEFCF1Darkest = 950 · #493E03
:root {
  --brand-50: #FEFCF1;
  --brand-100: #FCF8E3;
  --brand-200: #FCF2C0;
  --brand-300: #FFEC8F;
  --brand-400: #FFE357;
  --brand-500: #FFDA1F;
  --brand-600: #F5CC00;
  --brand-700: #ceac00;
  --brand-800: #A38800;
  --brand-900: #766305;
  --brand-950: #493E03;
  --brand: #ceac00;
  --brand-ink: #000000;
}

Colors that work with #ceac00

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#EDE5C0
Hairlines and dividers
Muted text#9B8E4B
Captions on the surface
Accent#0056CE
Second voice, not a rival
Dark variant#806A00
Hover, pressed, headers
Light variant#FFFBE5
Selected rows, tints
Dark surface#242214
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 #ceac00

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black 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#0022CE
Analogous left#CE4500
Analogous right#89CE00
Split-complement 1#0089CE
Split-complement 2#4500CE
Triadic 1#00CEAC
Triadic 2#AC00CE
Tetradic#00CE45

RGB percentages

Red80.8%
Green67.5%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta16.5%
Yellow100.0%
Key (black)19.2%

Color previews

#ceac00 text on a black background

contrast 9.53:1

Card sample

#ceac00 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ceac00

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.

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

#ceac00, answered

What color is #ceac00?

#ceac00 is a dark electric yellow, closest to Goldenrod (ΔE2000 6). It sits at 50° on the hue wheel with 100% saturation and 40% lightness, which reads as warm.

What is the RGB value of #ceac00?

rgb(206, 172, 0) — 206 red, 172 green and 0 blue out of 255, or 80.8% / 67.5% / 0% by channel.

Is #ceac00 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4263 and perceived brightness is 68%, so black text on it reaches 9.53:1.

Should I use black or white text on #ceac00?

Black. It scores 9.53:1 against #ceac00, versus 2.20:1 for white — AAA at any size.

What is the complementary color of #ceac00?

#0022CE sits directly opposite on the wheel. Softer options are the split-complements #0089CE and #4500CE, which give the same contrast with far less vibration.

What colors go well with #ceac00?

For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8E4B for secondary text, #0056CE as an accent and #806A00 for hover and pressed states. For a palette, the analogous pair #CE4500 and #89CE00 stays calm, while #0022CE is the loudest partner.

What is #ceac00 in CMYK for printing?

cmyk(0%, 17%, 100%, 19%). 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 #ceac00 warm or cool?

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

Work with #ceac00 in the Color Lab