Skip to content

#dec01a

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

RGB
222, 192, 26
HSL
51°, 79%, 49%
CMYK
0, 14, 88, 13
Luminance
0.5330

At a glance

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

Hex
#dec01a
Hue
51°
yellow
Saturation
79%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5330
WCAG relative
Temperature
Warm
17/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.66:1
Closest name
Gold
ΔE2000 6.6
Where it sits
Hue51° of 360°
Saturation79%
Lightness49%
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#dec01a
RGBrgb(222, 192, 26)
HSLhsl(51, 79%, 49%)
CMYKcmyk(0%, 14%, 88%, 13%)
LABlab(78.1 -4.0 76.1)
LCHlch(78.1 76.2 93.0)
OKLCHoklch(0.809 0.163 97.4)
Decimal14598170
Display P3color(display-p3 0.871 0.753 0.102)

Copy-ready code

/* CSS */
color: #dec01a;
background-color: #dec01a;
/* Tailwind (arbitrary) */
class="text-[#dec01a] bg-[#dec01a]"
/* SCSS */
$brand: #dec01a;
/* SwiftUI */
Color(red: 0.871, green: 0.753, blue: 0.102)
/* Android */
Color.parseColor("#dec01a")
/* Flutter */
Color(0xFFDEC01A)
/* Python / OpenCV (BGR) */
(26, 192, 222)

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

Accessibility — WCAG contrast

Aa
#dec01a on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#dec01a on black: 11.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5BB00
deuteranopia · #DDC52B
tritanopia · #F0B0A4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dec01a 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
#F9F6E6
#F5EEC7
#F3E69B
#EDD968
#E7CC36
#dec01a
#B79E15
#927E11
#6A5C11
#423A0A
Base = 600Lightest = 50 · #FCFBF3Darkest = 950 · #423A0A
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F6E6;
  --brand-200: #F5EEC7;
  --brand-300: #F3E69B;
  --brand-400: #EDD968;
  --brand-500: #E7CC36;
  --brand-600: #dec01a;
  --brand-700: #B79E15;
  --brand-800: #927E11;
  --brand-900: #6A5C11;
  --brand-950: #423A0A;
  --brand: #dec01a;
  --brand-ink: #000000;
}

Colors that work with #dec01a

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#EDE6C0
Hairlines and dividers
Muted text#9B8F4B
Captions on the surface
Accent#1568E3
Second voice, not a rival
Dark variant#72630D
Hover, pressed, headers
Light variant#FCF9E8
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 #dec01a

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#1A38DE
Analogous left#DE5E1A
Analogous right#9ADE1A
Split-complement 1#1A9ADE
Split-complement 2#5E1ADE
Triadic 1#1ADEC0
Triadic 2#C01ADE
Tetradic#1ADE5E

RGB percentages

Red87.1%
Green75.3%
Blue10.2%

CMYK percentages

Cyan0.0%
Magenta13.5%
Yellow88.3%
Key (black)12.9%

Color previews

#dec01a text on a black background

contrast 11.66:1

Card sample

#dec01a text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 192, 26, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 192, 26, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dec01a;
background: linear-gradient(135deg, #dec01a, #79DE1A);

Monochromatic scale

Palettes built from #dec01a

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.

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

#dec01a, answered

What color is #dec01a?

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

What is the RGB value of #dec01a?

rgb(222, 192, 26) — 222 red, 192 green and 26 blue out of 255, or 87.1% / 75.3% / 10.2% by channel.

Is #dec01a a light or a dark color?

It is a light color. Relative luminance is 0.5330 and perceived brightness is 75%, so black text on it reaches 11.66:1.

Should I use black or white text on #dec01a?

Black. It scores 11.66:1 against #dec01a, versus 1.80:1 for white — AAA at any size.

What is the complementary color of #dec01a?

#1A38DE sits directly opposite on the wheel. Softer options are the split-complements #1A9ADE and #5E1ADE, which give the same contrast with far less vibration.

What colors go well with #dec01a?

For interface work: #FAF9F4 as the surface, #EDE6C0 for borders, #9B8F4B for secondary text, #1568E3 as an accent and #72630D for hover and pressed states. For a palette, the analogous pair #DE5E1A and #9ADE1A stays calm, while #1A38DE is the loudest partner.

What is #dec01a in CMYK for printing?

cmyk(0%, 14%, 88%, 13%). 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 #dec01a 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 #DE931A; nudged cooler, #B5E018.

Work with #dec01a in the Color Lab