Skip to content

#cfdf2d

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

RGB
207, 223, 45
HSL
65°, 74%, 53%
CMYK
7, 0, 80, 13
Luminance
0.6623

At a glance

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

Hex
#cfdf2d
Hue
65°
yellow
Saturation
74%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
81%
weighted brightness
Luminance
0.6623
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
14.25:1
Closest name
Yellow
ΔE2000 9
Where it sits
Hue65° of 360°
Saturation74%
Lightness53%
Temperature
Warm ← → Cool29% 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#cfdf2d
RGBrgb(207, 223, 45)
HSLhsl(65, 74%, 53%)
CMYKcmyk(7%, 0%, 80%, 13%)
LABlab(85.1 -25.3 77.1)
LCHlch(85.1 81.2 108.2)
OKLCHoklch(0.863 0.185 115.0)
Decimal13623085
Display P3color(display-p3 0.812 0.875 0.176)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf2d on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf2d on black: 14.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EFD300
deuteranopia · #EED63F
tritanopia · #DDD2BF

Color scale — 50 to 950

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

#FBFCF3
#F7F8E7
#EFF3C8
#E9F09E
#DEE96D
#cfdf2d
#C4D420
#A4B11B
#838E16
#5F6714
#3B400C
Base = 500Lightest = 50 · #FBFCF3Darkest = 950 · #3B400C
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F8E7;
  --brand-200: #EFF3C8;
  --brand-300: #E9F09E;
  --brand-400: #DEE96D;
  --brand-500: #cfdf2d;
  --brand-600: #C4D420;
  --brand-700: #A4B11B;
  --brand-800: #838E16;
  --brand-900: #5F6714;
  --brand-950: #3B400C;
  --brand: #cfdf2d;
  --brand-ink: #000000;
}

Colors that work with #cfdf2d

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#E9EDC0
Hairlines and dividers
Muted text#949B4B
Captions on the surface
Accent#2846E4
Second voice, not a rival
Dark variant#666F11
Hover, pressed, headers
Light variant#FAFCE9
Selected rows, tints
Dark surface#232414
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 #cfdf2d

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#3D2DDF
Analogous left#DF962D
Analogous right#76DF2D
Split-complement 1#2D76DF
Split-complement 2#962DDF
Triadic 1#2DCFDF
Triadic 2#DF2DCF
Tetradic#2DDF96

RGB percentages

Red81.2%
Green87.5%
Blue17.6%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow79.8%
Key (black)12.5%

Color previews

#cfdf2d text on a black background

contrast 14.25:1

Card sample

#cfdf2d text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 223, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 223, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdf2d;
background: linear-gradient(135deg, #cfdf2d, #58DF2D);

Monochromatic scale

Palettes built from #cfdf2d

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.

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

#cfdf2d, answered

What color is #cfdf2d?

#cfdf2d is a balanced vivid yellow, closest to Yellow (ΔE2000 9). It sits at 65° on the hue wheel with 74% saturation and 53% lightness, which reads as warm.

What is the RGB value of #cfdf2d?

rgb(207, 223, 45) — 207 red, 223 green and 45 blue out of 255, or 81.2% / 87.5% / 17.6% by channel.

Is #cfdf2d a light or a dark color?

It is a light color. Relative luminance is 0.6623 and perceived brightness is 81%, so black text on it reaches 14.25:1.

Should I use black or white text on #cfdf2d?

Black. It scores 14.25:1 against #cfdf2d, versus 1.47:1 for white — AAA at any size.

What is the complementary color of #cfdf2d?

#3D2DDF sits directly opposite on the wheel. Softer options are the split-complements #2D76DF and #962DDF, which give the same contrast with far less vibration.

What colors go well with #cfdf2d?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #949B4B for secondary text, #2846E4 as an accent and #666F11 for hover and pressed states. For a palette, the analogous pair #DF962D and #76DF2D stays calm, while #3D2DDF is the loudest partner.

What is #cfdf2d in CMYK for printing?

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

Is #cfdf2d warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFAE2D; nudged cooler, #8EE12A.

Work with #cfdf2d in the Color Lab