Skip to content

#cdba16

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

RGB
205, 186, 22
HSL
54°, 81%, 45%
CMYK
0, 9, 89, 20
Luminance
0.4815

At a glance

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

Hex
#cdba16
Hue
54°
yellow
Saturation
81%
electric
Lightness
45%
dark
Brightness
80%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4815
WCAG relative
Temperature
Warm
20/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.63:1
Closest name
Gold
ΔE2000 9.6
Where it sits
Hue54° of 360°
Saturation81%
Lightness45%
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#cdba16
RGBrgb(205, 186, 22)
HSLhsl(54, 81%, 45%)
CMYKcmyk(0%, 9%, 89%, 20%)
LABlab(74.9 -8.4 73.7)
LCHlch(74.9 74.2 96.5)
OKLCHoklch(0.781 0.160 101.8)
Decimal13482518
Display P3color(display-p3 0.804 0.729 0.086)

Copy-ready code

/* CSS */
color: #cdba16;
background-color: #cdba16;
/* Tailwind (arbitrary) */
class="text-[#cdba16] bg-[#cdba16]"
/* SCSS */
$brand: #cdba16;
/* SwiftUI */
Color(red: 0.804, green: 0.729, blue: 0.086)
/* Android */
Color.parseColor("#cdba16")
/* Flutter */
Color(0xFFCDBA16)
/* Python / OpenCV (BGR) */
(22, 186, 205)

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

Accessibility — WCAG contrast

Aa
#cdba16 on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#cdba16 on black: 10.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CDB400
deuteranopia · #D2BC28
tritanopia · #DEAC9F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cdba16 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
#F9F7E6
#F5F1C6
#F4EB9A
#EFE167
#E9D734
#cdba16
#B8A714
#938610
#6B6110
#433D0A
Base = 600Lightest = 50 · #FCFBF3Darkest = 950 · #433D0A
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F7E6;
  --brand-200: #F5F1C6;
  --brand-300: #F4EB9A;
  --brand-400: #EFE167;
  --brand-500: #E9D734;
  --brand-600: #cdba16;
  --brand-700: #B8A714;
  --brand-800: #938610;
  --brand-900: #6B6110;
  --brand-950: #433D0A;
  --brand: #cdba16;
  --brand-ink: #000000;
}

Colors that work with #cdba16

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#1155D1
Second voice, not a rival
Dark variant#73690C
Hover, pressed, headers
Light variant#FDFAE8
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 #cdba16

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#1629CD
Analogous left#CD5F16
Analogous right#84CD16
Split-complement 1#1684CD
Split-complement 2#5F16CD
Triadic 1#16CDBA
Triadic 2#BA16CD
Tetradic#16CD5F

RGB percentages

Red80.4%
Green72.9%
Blue8.6%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow89.3%
Key (black)19.6%

Color previews

#cdba16 text on a black background

contrast 10.63:1

Card sample

#cdba16 text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 186, 22, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 186, 22, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdba16;
background: linear-gradient(135deg, #cdba16, #66CD16);

Monochromatic scale

Palettes built from #cdba16

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.

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

#cdba16, answered

What color is #cdba16?

#cdba16 is a dark electric yellow, closest to Gold (ΔE2000 9.6). It sits at 54° on the hue wheel with 81% saturation and 45% lightness, which reads as warm.

What is the RGB value of #cdba16?

rgb(205, 186, 22) — 205 red, 186 green and 22 blue out of 255, or 80.4% / 72.9% / 8.6% by channel.

Is #cdba16 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4815 and perceived brightness is 71%, so black text on it reaches 10.63:1.

Should I use black or white text on #cdba16?

Black. It scores 10.63:1 against #cdba16, versus 1.98:1 for white — AAA at any size.

What is the complementary color of #cdba16?

#1629CD sits directly opposite on the wheel. Softer options are the split-complements #1684CD and #5F16CD, which give the same contrast with far less vibration.

What colors go well with #cdba16?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B934B for secondary text, #1155D1 as an accent and #73690C for hover and pressed states. For a palette, the analogous pair #CD5F16 and #84CD16 stays calm, while #1629CD is the loudest partner.

What is #cdba16 in CMYK for printing?

cmyk(0%, 9%, 89%, 20%). 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 #cdba16 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 #CD8A16; nudged cooler, #9ECF14.

Work with #cdba16 in the Color Lab