Skip to content

#cdd25f

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

RGB
205, 210, 95
HSL
63°, 56%, 60%
CMYK
2, 0, 55, 18
Luminance
0.5990

At a glance

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

Hex
#cdd25f
Hue
63°
yellow
Saturation
56%
vivid
Lightness
60%
balanced
Brightness
82%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5990
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.98:1
Closest name
Khaki
ΔE2000 7.4
Where it sits
Hue63° of 360°
Saturation56%
Lightness60%
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#cdd25f
RGBrgb(205, 210, 95)
HSLhsl(63, 56%, 60%)
CMYKcmyk(2%, 0%, 55%, 18%)
LABlab(81.8 -17.1 55.4)
LCHlch(81.8 58.0 107.1)
OKLCHoklch(0.837 0.138 111.3)
Decimal13488735
Display P3color(display-p3 0.804 0.824 0.373)

Copy-ready code

/* CSS */
color: #cdd25f;
background-color: #cdd25f;
/* Tailwind (arbitrary) */
class="text-[#cdd25f] bg-[#cdd25f]"
/* SCSS */
$brand: #cdd25f;
/* SwiftUI */
Color(red: 0.804, green: 0.824, blue: 0.373)
/* Android */
Color.parseColor("#cdd25f")
/* Flutter */
Color(0xFFCDD25F)
/* Python / OpenCV (BGR) */
(95, 210, 205)

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

Accessibility — WCAG contrast

Aa
#cdd25f on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#cdd25f on black: 12.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E0CA53
deuteranopia · #E1CD65
tritanopia · #D9C7B9

Color scale — 50 to 950

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

#FAFBF4
#F6F6E9
#EDEECD
#E4E6A7
#D6DA7C
#cdd25f
#B9BF36
#9A9F2D
#7B7F24
#5A5D1E
#383A13
Base = 500Lightest = 50 · #FAFBF4Darkest = 950 · #383A13
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F6F6E9;
  --brand-200: #EDEECD;
  --brand-300: #E4E6A7;
  --brand-400: #D6DA7C;
  --brand-500: #cdd25f;
  --brand-600: #B9BF36;
  --brand-700: #9A9F2D;
  --brand-800: #7B7F24;
  --brand-900: #5A5D1E;
  --brand-950: #383A13;
  --brand: #cdd25f;
  --brand-ink: #000000;
}

Colors that work with #cdd25f

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#EBEDC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#5B74D6
Second voice, not a rival
Dark variant#60641C
Hover, pressed, headers
Light variant#F9F9EB
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 #cdd25f

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#645FD2
Analogous left#D29D5F
Analogous right#94D25F
Split-complement 1#5F94D2
Split-complement 2#9D5FD2
Triadic 1#5FCDD2
Triadic 2#D25FCD
Tetradic#5FD29D

RGB percentages

Red80.4%
Green82.4%
Blue37.3%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow54.8%
Key (black)17.6%

Color previews

#cdd25f text on a black background

contrast 12.98:1

Card sample

#cdd25f text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 210, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 210, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdd25f;
background: linear-gradient(135deg, #cdd25f, #80D25F);

Monochromatic scale

Palettes built from #cdd25f

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.

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

#cdd25f, answered

What color is #cdd25f?

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

What is the RGB value of #cdd25f?

rgb(205, 210, 95) — 205 red, 210 green and 95 blue out of 255, or 80.4% / 82.4% / 37.3% by channel.

Is #cdd25f a light or a dark color?

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

Should I use black or white text on #cdd25f?

Black. It scores 12.98:1 against #cdd25f, versus 1.62:1 for white — AAA at any size.

What is the complementary color of #cdd25f?

#645FD2 sits directly opposite on the wheel. Softer options are the split-complements #5F94D2 and #9D5FD2, which give the same contrast with far less vibration.

What colors go well with #cdd25f?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #979B4B for secondary text, #5B74D6 as an accent and #60641C for hover and pressed states. For a palette, the analogous pair #D29D5F and #94D25F stays calm, while #645FD2 is the loudest partner.

What is #cdd25f in CMYK for printing?

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

Is #cdd25f 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 #D2AD5F; nudged cooler, #A3D45D.

Work with #cdd25f in the Color Lab