Skip to content

#cfd138

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

RGB
207, 209, 56
HSL
61°, 62%, 52%
CMYK
1, 0, 73, 18
Luminance
0.5915

At a glance

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

Hex
#cfd138
Hue
61°
yellow
Saturation
62%
vivid
Lightness
52%
balanced
Brightness
82%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5915
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.83:1
Closest name
Khaki
ΔE2000 9.6
Where it sits
Hue61° of 360°
Saturation62%
Lightness52%
Temperature
Warm ← → Cool26% 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#cfd138
RGBrgb(207, 209, 56)
HSLhsl(61, 62%, 52%)
CMYKcmyk(1%, 0%, 73%, 18%)
LABlab(81.4 -18.1 70.5)
LCHlch(81.4 72.8 104.4)
OKLCHoklch(0.833 0.165 110.3)
Decimal13619512
Display P3color(display-p3 0.812 0.820 0.220)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd138 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cfd138 on black: 12.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E2C817
deuteranopia · #E3CC44
tritanopia · #DEC4B4

Color scale — 50 to 950

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

#FBFBF4
#F7F7E8
#F0F0CC
#E9EAA4
#DEDF76
#cfd138
#C5C72E
#A4A626
#83851F
#5F601A
#3C3C10
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3C3C10
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F7E8;
  --brand-200: #F0F0CC;
  --brand-300: #E9EAA4;
  --brand-400: #DEDF76;
  --brand-500: #cfd138;
  --brand-600: #C5C72E;
  --brand-700: #A4A626;
  --brand-800: #83851F;
  --brand-900: #5F601A;
  --brand-950: #3C3C10;
  --brand: #cfd138;
  --brand-ink: #000000;
}

Colors that work with #cfd138

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#ECEDC0
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#335AD6
Second voice, not a rival
Dark variant#666818
Hover, pressed, headers
Light variant#FAFAEA
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 #cfd138

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#3A38D1
Analogous left#D18738
Analogous right#83D138
Split-complement 1#3883D1
Split-complement 2#8738D1
Triadic 1#38CFD1
Triadic 2#D138CF
Tetradic#38D187

RGB percentages

Red81.2%
Green82.0%
Blue22.0%

CMYK percentages

Cyan1.0%
Magenta0.0%
Yellow73.2%
Key (black)18.0%

Color previews

#cfd138 text on a black background

contrast 12.83:1

Card sample

#cfd138 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 209, 56, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 209, 56, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd138;
background: linear-gradient(135deg, #cfd138, #69D138);

Monochromatic scale

Palettes built from #cfd138

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.

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

#cfd138, answered

What color is #cfd138?

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

What is the RGB value of #cfd138?

rgb(207, 209, 56) — 207 red, 209 green and 56 blue out of 255, or 81.2% / 82% / 22% by channel.

Is #cfd138 a light or a dark color?

It is a light color. Relative luminance is 0.5915 and perceived brightness is 77%, so black text on it reaches 12.83:1.

Should I use black or white text on #cfd138?

Black. It scores 12.83:1 against #cfd138, versus 1.64:1 for white — AAA at any size.

What is the complementary color of #cfd138?

#3A38D1 sits directly opposite on the wheel. Softer options are the split-complements #3883D1 and #8738D1, which give the same contrast with far less vibration.

What colors go well with #cfd138?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #335AD6 as an accent and #666818 for hover and pressed states. For a palette, the analogous pair #D18738 and #83D138 stays calm, while #3A38D1 is the loudest partner.

What is #cfd138 in CMYK for printing?

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

Is #cfd138 warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D19D38; nudged cooler, #98D336.

Work with #cfd138 in the Color Lab