Skip to content

#cfd40d

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

RGB
207, 212, 13
HSL
62°, 88%, 44%
CMYK
2, 0, 94, 17
Luminance
0.6038

At a glance

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

Hex
#cfd40d
Hue
62°
yellow
Saturation
88%
electric
Lightness
44%
dark
Brightness
83%
HSV value
Perceived
78%
weighted brightness
Luminance
0.6038
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
13.08:1
Closest name
Yellow
ΔE2000 9.9
Where it sits
Hue62° of 360°
Saturation88%
Lightness44%
Temperature
Warm ← → Cool26% 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#cfd40d
RGBrgb(207, 212, 13)
HSLhsl(62, 88%, 44%)
CMYKcmyk(2%, 0%, 94%, 17%)
LABlab(82.0 -20.7 80.5)
LCHlch(82.0 83.2 104.4)
OKLCHoklch(0.838 0.183 111.5)
Decimal13620237
Display P3color(display-p3 0.812 0.831 0.051)

Copy-ready code

/* CSS */
color: #cfd40d;
background-color: #cfd40d;
/* Tailwind (arbitrary) */
class="text-[#cfd40d] bg-[#cfd40d]"
/* SCSS */
$brand: #cfd40d;
/* SwiftUI */
Color(red: 0.812, green: 0.831, blue: 0.051)
/* Android */
Color.parseColor("#cfd40d")
/* Flutter */
Color(0xFFCFD40D)
/* Python / OpenCV (BGR) */
(13, 212, 207)

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

Accessibility — WCAG contrast

Aa
#cfd40d on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#cfd40d on black: 13.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E5CA00
deuteranopia · #E6CE2C
tritanopia · #DEC6B5

Color scale — 50 to 950

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

#FCFDF2
#FAFAE5
#F7F8C4
#F6F895
#F2F560
#EDF22C
#cfd40d
#BCC00C
#969A09
#6C6F0B
#444507
Base = 600Lightest = 50 · #FCFDF2Darkest = 950 · #444507
:root {
  --brand-50: #FCFDF2;
  --brand-100: #FAFAE5;
  --brand-200: #F7F8C4;
  --brand-300: #F6F895;
  --brand-400: #F2F560;
  --brand-500: #EDF22C;
  --brand-600: #cfd40d;
  --brand-700: #BCC00C;
  --brand-800: #969A09;
  --brand-900: #6C6F0B;
  --brand-950: #444507;
  --brand: #cfd40d;
  --brand-ink: #000000;
}

Colors that work with #cfd40d

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#ECEDC0
Hairlines and dividers
Muted text#999B4B
Captions on the surface
Accent#0937D8
Second voice, not a rival
Dark variant#757807
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 #cfd40d

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#120DD4
Analogous left#D4750D
Analogous right#6BD40D
Split-complement 1#0D6BD4
Split-complement 2#750DD4
Triadic 1#0DCFD4
Triadic 2#D40DCF
Tetradic#0DD475

RGB percentages

Red81.2%
Green83.1%
Blue5.1%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow93.9%
Key (black)16.9%

Color previews

#cfd40d text on a black background

contrast 13.08:1

Card sample

#cfd40d text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 212, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 212, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd40d;
background: linear-gradient(135deg, #cfd40d, #4AD40D);

Monochromatic scale

Palettes built from #cfd40d

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.

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

#cfd40d, answered

What color is #cfd40d?

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

What is the RGB value of #cfd40d?

rgb(207, 212, 13) — 207 red, 212 green and 13 blue out of 255, or 81.2% / 83.1% / 5.1% by channel.

Is #cfd40d a light or a dark color?

It is a light color. Relative luminance is 0.6038 and perceived brightness is 78%, so black text on it reaches 13.08:1.

Should I use black or white text on #cfd40d?

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

What is the complementary color of #cfd40d?

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

What colors go well with #cfd40d?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #999B4B for secondary text, #0937D8 as an accent and #757807 for hover and pressed states. For a palette, the analogous pair #D4750D and #6BD40D stays calm, while #120DD4 is the loudest partner.

What is #cfd40d in CMYK for printing?

cmyk(2%, 0%, 94%, 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 #cfd40d warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D4980D; nudged cooler, #86D60B.

Work with #cfd40d in the Color Lab