Skip to content

#cfda2b

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

RGB
207, 218, 43
HSL
64°, 70%, 51%
CMYK
5, 0, 80, 15
Luminance
0.6358

At a glance

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

Hex
#cfda2b
Hue
64°
yellow
Saturation
70%
vivid
Lightness
51%
balanced
Brightness
85%
HSV value
Perceived
79%
weighted brightness
Luminance
0.6358
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.72:1
Closest name
Yellow
ΔE2000 9.5
Where it sits
Hue64° of 360°
Saturation70%
Lightness51%
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#cfda2b
RGBrgb(207, 218, 43)
HSLhsl(64, 70%, 51%)
CMYKcmyk(5%, 0%, 80%, 15%)
LABlab(83.8 -23.0 76.5)
LCHlch(83.8 79.9 106.7)
OKLCHoklch(0.852 0.180 113.5)
Decimal13621803
Display P3color(display-p3 0.812 0.855 0.169)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfda2b on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#cfda2b on black: 13.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EBCF00
deuteranopia · #EBD23D
tritanopia · #DDCDBB

Color scale — 50 to 950

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

#FBFCF3
#F7F8E7
#F0F2C9
#E9EE9F
#DFE670
#D4DE40
#cfda2b
#A5AE1E
#848B18
#606516
#3C3F0E
Base = 600Lightest = 50 · #FBFCF3Darkest = 950 · #3C3F0E
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F8E7;
  --brand-200: #F0F2C9;
  --brand-300: #E9EE9F;
  --brand-400: #DFE670;
  --brand-500: #D4DE40;
  --brand-600: #cfda2b;
  --brand-700: #A5AE1E;
  --brand-800: #848B18;
  --brand-900: #606516;
  --brand-950: #3C3F0E;
  --brand: #cfda2b;
  --brand-ink: #000000;
}

Colors that work with #cfda2b

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#969B4B
Captions on the surface
Accent#2649DF
Second voice, not a rival
Dark variant#676D13
Hover, pressed, headers
Light variant#FAFBE9
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 #cfda2b

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#362BDA
Analogous left#DA8E2B
Analogous right#77DA2B
Split-complement 1#2B77DA
Split-complement 2#8E2BDA
Triadic 1#2BCFDA
Triadic 2#DA2BCF
Tetradic#2BDA8E

RGB percentages

Red81.2%
Green85.5%
Blue16.9%

CMYK percentages

Cyan5.0%
Magenta0.0%
Yellow80.3%
Key (black)14.5%

Color previews

#cfda2b text on a black background

contrast 13.72:1

Card sample

#cfda2b text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 218, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 218, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfda2b;
background: linear-gradient(135deg, #cfda2b, #5ADA2B);

Monochromatic scale

Palettes built from #cfda2b

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.

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

#cfda2b, answered

What color is #cfda2b?

#cfda2b is a balanced vivid yellow, closest to Yellow (ΔE2000 9.5). It sits at 64° on the hue wheel with 70% saturation and 51% lightness, which reads as warm.

What is the RGB value of #cfda2b?

rgb(207, 218, 43) — 207 red, 218 green and 43 blue out of 255, or 81.2% / 85.5% / 16.9% by channel.

Is #cfda2b a light or a dark color?

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

Should I use black or white text on #cfda2b?

Black. It scores 13.72:1 against #cfda2b, versus 1.53:1 for white — AAA at any size.

What is the complementary color of #cfda2b?

#362BDA sits directly opposite on the wheel. Softer options are the split-complements #2B77DA and #8E2BDA, which give the same contrast with far less vibration.

What colors go well with #cfda2b?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #2649DF as an accent and #676D13 for hover and pressed states. For a palette, the analogous pair #DA8E2B and #77DA2B stays calm, while #362BDA is the loudest partner.

What is #cfda2b in CMYK for printing?

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

Is #cfda2b 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 #DAA52B; nudged cooler, #8FDD29.

Work with #cfda2b in the Color Lab