Skip to content

#cdd40b

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

RGB
205, 212, 11
HSL
62°, 90%, 44%
CMYK
3, 0, 95, 17
Luminance
0.6009

At a glance

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

Hex
#cdd40b
Hue
62°
yellow
Saturation
90%
electric
Lightness
44%
dark
Brightness
83%
HSV value
Perceived
77%
weighted brightness
Luminance
0.6009
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
13.02:1
Closest name
Yellow
ΔE2000 10.1
Where it sits
Hue62° of 360°
Saturation90%
Lightness44%
Temperature
Warm ← → Cool27% 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#cdd40b
RGBrgb(205, 212, 11)
HSLhsl(62, 90%, 44%)
CMYKcmyk(3%, 0%, 95%, 17%)
LABlab(81.9 -21.6 80.5)
LCHlch(81.9 83.4 105.0)
OKLCHoklch(0.837 0.184 112.2)
Decimal13489163
Display P3color(display-p3 0.804 0.831 0.043)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdd40b on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#cdd40b on black: 13.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5CA00
deuteranopia · #E6CE2B
tritanopia · #DCC6B4

Color scale — 50 to 950

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

#FCFDF2
#FAFBE5
#F7F8C3
#F6F994
#F1F75F
#EDF42A
#E1E90C
#cdd40b
#969B08
#6C700A
#444607
Base = 700Lightest = 50 · #FCFDF2Darkest = 950 · #444607
:root {
  --brand-50: #FCFDF2;
  --brand-100: #FAFBE5;
  --brand-200: #F7F8C3;
  --brand-300: #F6F994;
  --brand-400: #F1F75F;
  --brand-500: #EDF42A;
  --brand-600: #E1E90C;
  --brand-700: #cdd40b;
  --brand-800: #969B08;
  --brand-900: #6C700A;
  --brand-950: #444607;
  --brand: #cdd40b;
  --brand-ink: #000000;
}

Colors that work with #cdd40b

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#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#0734D8
Second voice, not a rival
Dark variant#757906
Hover, pressed, headers
Light variant#FDFEE7
Selected rows, tints
Dark surface#242414
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 #cdd40b

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#120BD4
Analogous left#D4760B
Analogous right#68D40B
Split-complement 1#0B68D4
Split-complement 2#760BD4
Triadic 1#0BCDD4
Triadic 2#D40BCD
Tetradic#0BD476

RGB percentages

Red80.4%
Green83.1%
Blue4.3%

CMYK percentages

Cyan3.3%
Magenta0.0%
Yellow94.8%
Key (black)16.9%

Color previews

#cdd40b text on a black background

contrast 13.02:1

Card sample

#cdd40b text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 212, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 212, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdd40b;
background: linear-gradient(135deg, #cdd40b, #47D40B);

Monochromatic scale

Palettes built from #cdd40b

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.

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

#cdd40b, answered

What color is #cdd40b?

#cdd40b is a dark electric yellow, closest to Yellow (ΔE2000 10.1). It sits at 62° on the hue wheel with 90% saturation and 44% lightness, which reads as warm.

What is the RGB value of #cdd40b?

rgb(205, 212, 11) — 205 red, 212 green and 11 blue out of 255, or 80.4% / 83.1% / 4.3% by channel.

Is #cdd40b a light or a dark color?

It is a light color. Relative luminance is 0.6009 and perceived brightness is 77%, so black text on it reaches 13.02:1.

Should I use black or white text on #cdd40b?

Black. It scores 13.02:1 against #cdd40b, versus 1.61:1 for white — AAA at any size.

What is the complementary color of #cdd40b?

#120BD4 sits directly opposite on the wheel. Softer options are the split-complements #0B68D4 and #760BD4, which give the same contrast with far less vibration.

What colors go well with #cdd40b?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #0734D8 as an accent and #757906 for hover and pressed states. For a palette, the analogous pair #D4760B and #68D40B stays calm, while #120BD4 is the loudest partner.

What is #cdd40b in CMYK for printing?

cmyk(3%, 0%, 95%, 17%). 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 #cdd40b warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D4980B; nudged cooler, #84D609.

Work with #cdd40b in the Color Lab