Skip to content

#cfd73d

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

RGB
207, 215, 61
HSL
63°, 66%, 54%
CMYK
4, 0, 72, 16
Luminance
0.6220

At a glance

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

Hex
#cfd73d
Hue
63°
yellow
Saturation
66%
vivid
Lightness
54%
balanced
Brightness
84%
HSV value
Perceived
79%
weighted brightness
Luminance
0.6220
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.44:1
Closest name
Khaki
ΔE2000 9.4
Where it sits
Hue63° of 360°
Saturation66%
Lightness54%
Temperature
Warm ← → Cool28% 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#cfd73d
RGBrgb(207, 215, 61)
HSLhsl(63, 66%, 54%)
CMYKcmyk(4%, 0%, 72%, 16%)
LABlab(83.0 -20.9 70.4)
LCHlch(83.0 73.4 106.5)
OKLCHoklch(0.847 0.169 112.5)
Decimal13621053
Display P3color(display-p3 0.812 0.843 0.239)

Copy-ready code

/* CSS */
color: #cfd73d;
background-color: #cfd73d;
/* Tailwind (arbitrary) */
class="text-[#cfd73d] bg-[#cfd73d]"
/* SCSS */
$brand: #cfd73d;
/* SwiftUI */
Color(red: 0.812, green: 0.843, blue: 0.239)
/* Android */
Color.parseColor("#cfd73d")
/* Flutter */
Color(0xFFCFD73D)
/* Python / OpenCV (BGR) */
(61, 215, 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 #cfd73d · 13.44:1
Use #000000AAA at every size.
Aa
White text · 1.56:1
AA fail · AA large fail · AAA fail
Aa
Black text · 13.44:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cfd73d as text scores 1.56:1 on white and 13.44:1 on black.

Accessibility — WCAG contrast

Aa
#cfd73d on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#cfd73d on black: 13.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E7CD1F
deuteranopia · #E8D049
tritanopia · #DDCAB9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cfd73d is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF3
#F7F8E8
#EFF1CB
#E8ECA2
#DCE273
#cfd73d
#C3CB2A
#A2A923
#82871C
#5E6218
#3B3D0F
Base = 500Lightest = 50 · #FBFBF3Darkest = 950 · #3B3D0F
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F7F8E8;
  --brand-200: #EFF1CB;
  --brand-300: #E8ECA2;
  --brand-400: #DCE273;
  --brand-500: #cfd73d;
  --brand-600: #C3CB2A;
  --brand-700: #A2A923;
  --brand-800: #82871C;
  --brand-900: #5E6218;
  --brand-950: #3B3D0F;
  --brand: #cfd73d;
  --brand-ink: #000000;
}

Colors that work with #cfd73d

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#EAEDC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#3859DC
Second voice, not a rival
Dark variant#656A16
Hover, pressed, headers
Light variant#FAFBEA
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 #cfd73d

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#453DD7
Analogous left#D7923D
Analogous right#82D73D
Split-complement 1#3D82D7
Split-complement 2#923DD7
Triadic 1#3DCFD7
Triadic 2#D73DCF
Tetradic#3DD792

RGB percentages

Red81.2%
Green84.3%
Blue23.9%

CMYK percentages

Cyan3.7%
Magenta0.0%
Yellow71.6%
Key (black)15.7%

Color previews

#cfd73d text on a black background

contrast 13.44:1

Card sample

#cfd73d text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 215, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 215, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd73d;
background: linear-gradient(135deg, #cfd73d, #68D73D);

Monochromatic scale

Palettes built from #cfd73d

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.

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

#cfd73d, answered

What color is #cfd73d?

#cfd73d is a balanced vivid yellow, closest to Khaki (ΔE2000 9.4). It sits at 63° on the hue wheel with 66% saturation and 54% lightness, which reads as warm.

What is the RGB value of #cfd73d?

rgb(207, 215, 61) — 207 red, 215 green and 61 blue out of 255, or 81.2% / 84.3% / 23.9% by channel.

Is #cfd73d a light or a dark color?

It is a light color. Relative luminance is 0.6220 and perceived brightness is 79%, so black text on it reaches 13.44:1.

Should I use black or white text on #cfd73d?

Black. It scores 13.44:1 against #cfd73d, versus 1.56:1 for white — AAA at any size.

What is the complementary color of #cfd73d?

#453DD7 sits directly opposite on the wheel. Softer options are the split-complements #3D82D7 and #923DD7, which give the same contrast with far less vibration.

What colors go well with #cfd73d?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #979B4B for secondary text, #3859DC as an accent and #656A16 for hover and pressed states. For a palette, the analogous pair #D7923D and #82D73D stays calm, while #453DD7 is the loudest partner.

What is #cfd73d in CMYK for printing?

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

Is #cfd73d warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D7A63D; nudged cooler, #97D93B.

Work with #cfd73d in the Color Lab