Skip to content

#cfd271

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

RGB
207, 210, 113
HSL
62°, 52%, 63%
CMYK
1, 0, 46, 18
Luminance
0.6055

At a glance

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

Hex
#cfd271
Hue
62°
yellow
Saturation
52%
vivid
Lightness
63%
balanced
Brightness
82%
HSV value
Perceived
79%
weighted brightness
Luminance
0.6055
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.11:1
Closest name
Khaki
ΔE2000 6.3
Where it sits
Hue62° of 360°
Saturation52%
Lightness63%
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#cfd271
RGBrgb(207, 210, 113)
HSLhsl(62, 52%, 63%)
CMYKcmyk(1%, 0%, 46%, 18%)
LABlab(82.1 -14.7 47.4)
LCHlch(82.1 49.6 107.2)
OKLCHoklch(0.841 0.121 110.3)
Decimal13619825
Display P3color(display-p3 0.812 0.824 0.443)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd271 on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#cfd271 on black: 13.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFCB69
deuteranopia · #E0CE76
tritanopia · #DAC8BB

Color scale — 50 to 950

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

#FAFAF4
#F6F6EA
#ECEDCF
#E2E4AA
#cfd271
#C5C955
#B6BA3B
#989B31
#797C27
#595A20
#373914
Base = 400Lightest = 50 · #FAFAF4Darkest = 950 · #373914
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F6F6EA;
  --brand-200: #ECEDCF;
  --brand-300: #E2E4AA;
  --brand-400: #cfd271;
  --brand-500: #C5C955;
  --brand-600: #B6BA3B;
  --brand-700: #989B31;
  --brand-800: #797C27;
  --brand-900: #595A20;
  --brand-950: #373914;
  --brand: #cfd271;
  --brand-ink: #000000;
}

Colors that work with #cfd271

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#EAEBC1
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#6D84D6
Second voice, not a rival
Dark variant#5F611F
Hover, pressed, headers
Light variant#F8F9EC
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 #cfd271

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#7471D2
Analogous left#D2A471
Analogous right#9ED271
Split-complement 1#719ED2
Split-complement 2#A471D2
Triadic 1#71CFD2
Triadic 2#D271CF
Tetradic#71D2A4

RGB percentages

Red81.2%
Green82.4%
Blue44.3%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow46.2%
Key (black)17.6%

Color previews

#cfd271 text on a black background

contrast 13.11:1

Card sample

#cfd271 text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 210, 113, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 210, 113, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd271;
background: linear-gradient(135deg, #cfd271, #8ED271);

Monochromatic scale

Palettes built from #cfd271

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.

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

#cfd271, answered

What color is #cfd271?

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

What is the RGB value of #cfd271?

rgb(207, 210, 113) — 207 red, 210 green and 113 blue out of 255, or 81.2% / 82.4% / 44.3% by channel.

Is #cfd271 a light or a dark color?

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

Should I use black or white text on #cfd271?

Black. It scores 13.11:1 against #cfd271, versus 1.60:1 for white — AAA at any size.

What is the complementary color of #cfd271?

#7471D2 sits directly opposite on the wheel. Softer options are the split-complements #719ED2 and #A471D2, which give the same contrast with far less vibration.

What colors go well with #cfd271?

For interface work: #FAFAF4 as the surface, #EAEBC1 for borders, #989B4B for secondary text, #6D84D6 as an accent and #5F611F for hover and pressed states. For a palette, the analogous pair #D2A471 and #9ED271 stays calm, while #7471D2 is the loudest partner.

What is #cfd271 in CMYK for printing?

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

Is #cfd271 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 #D2B171; nudged cooler, #ACD46F.

Work with #cfd271 in the Color Lab