Skip to content

#cec024

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

RGB
206, 192, 36
HSL
55°, 70%, 48%
CMYK
0, 7, 83, 19
Luminance
0.5095

At a glance

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

Hex
#cec024
Hue
55°
yellow
Saturation
70%
vivid
Lightness
48%
balanced
Brightness
81%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5095
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.19:1
Closest name
Gold
ΔE2000 9.5
Where it sits
Hue55° of 360°
Saturation70%
Lightness48%
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#cec024
RGBrgb(206, 192, 36)
HSLhsl(55, 70%, 48%)
CMYKcmyk(0%, 7%, 83%, 19%)
LABlab(76.7 -10.7 72.1)
LCHlch(76.7 72.9 98.5)
OKLCHoklch(0.795 0.160 103.9)
Decimal13549604
Display P3color(display-p3 0.808 0.753 0.141)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec024 on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#cec024 on black: 11.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D2B900
deuteranopia · #D7C032
tritanopia · #DEB2A4

Color scale — 50 to 950

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

#FCFBF3
#F8F7E7
#F2EFC9
#EEE8A0
#E6DC70
#DED140
#cec024
#AEA21E
#8B8218
#655E16
#3F3B0E
Base = 600Lightest = 50 · #FCFBF3Darkest = 950 · #3F3B0E
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F7E7;
  --brand-200: #F2EFC9;
  --brand-300: #EEE8A0;
  --brand-400: #E6DC70;
  --brand-500: #DED140;
  --brand-600: #cec024;
  --brand-700: #AEA21E;
  --brand-800: #8B8218;
  --brand-900: #655E16;
  --brand-950: #3F3B0E;
  --brand: #cec024;
  --brand-ink: #000000;
}

Colors that work with #cec024

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#1F5BD3
Second voice, not a rival
Dark variant#6D6513
Hover, pressed, headers
Light variant#FBFAE9
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 #cec024

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#2432CE
Analogous left#CE6B24
Analogous right#87CE24
Split-complement 1#2487CE
Split-complement 2#6B24CE
Triadic 1#24CEC0
Triadic 2#C024CE
Tetradic#24CE6B

RGB percentages

Red80.8%
Green75.3%
Blue14.1%

CMYK percentages

Cyan0.0%
Magenta6.8%
Yellow82.5%
Key (black)19.2%

Color previews

#cec024 text on a black background

contrast 11.19:1

Card sample

#cec024 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 192, 36, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 192, 36, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec024;
background: linear-gradient(135deg, #cec024, #6BCE24);

Monochromatic scale

Palettes built from #cec024

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.

#cec024 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

Converts to four-color process without much drama. Proof it anyway.

#cec024, answered

What color is #cec024?

#cec024 is a balanced vivid yellow, closest to Gold (ΔE2000 9.5). It sits at 55° on the hue wheel with 70% saturation and 48% lightness, which reads as warm.

What is the RGB value of #cec024?

rgb(206, 192, 36) — 206 red, 192 green and 36 blue out of 255, or 80.8% / 75.3% / 14.1% by channel.

Is #cec024 a light or a dark color?

It is a light color. Relative luminance is 0.5095 and perceived brightness is 73%, so black text on it reaches 11.19:1.

Should I use black or white text on #cec024?

Black. It scores 11.19:1 against #cec024, versus 1.88:1 for white — AAA at any size.

What is the complementary color of #cec024?

#2432CE sits directly opposite on the wheel. Softer options are the split-complements #2487CE and #6B24CE, which give the same contrast with far less vibration.

What colors go well with #cec024?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #1F5BD3 as an accent and #6D6513 for hover and pressed states. For a palette, the analogous pair #CE6B24 and #87CE24 stays calm, while #2432CE is the loudest partner.

What is #cec024 in CMYK for printing?

cmyk(0%, 7%, 83%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cec024 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 #CE9024; nudged cooler, #9FD122.

Work with #cec024 in the Color Lab