Skip to content

#cacf98

a light, soft yellow · warm · closest name: Pale Goldenrod

RGB
202, 207, 152
HSL
66°, 36%, 70%
CMYK
2, 0, 27, 19
Luminance
0.5945

At a glance

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

Hex
#cacf98
Hue
66°
yellow
Saturation
36%
soft
Lightness
70%
light
Brightness
81%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5945
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.89:1
Closest name
Pale Goldenrod
ΔE2000 7.1
Where it sits
Hue66° of 360°
Saturation36%
Lightness70%
Temperature
Warm ← → Cool30% 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#cacf98
RGBrgb(202, 207, 152)
HSLhsl(66, 36%, 70%)
CMYKcmyk(2%, 0%, 27%, 19%)
LABlab(81.5 -10.6 26.8)
LCHlch(81.5 28.9 111.6)
OKLCHoklch(0.837 0.073 112.2)
Decimal13291416
Display P3color(display-p3 0.792 0.812 0.596)

Copy-ready code

/* CSS */
color: #cacf98;
background-color: #cacf98;
/* Tailwind (arbitrary) */
class="text-[#cacf98] bg-[#cacf98]"
/* SCSS */
$brand: #cacf98;
/* SwiftUI */
Color(red: 0.792, green: 0.812, blue: 0.596)
/* Android */
Color.parseColor("#cacf98")
/* Flutter */
Color(0xFFCACF98)
/* Python / OpenCV (BGR) */
(152, 207, 202)

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

Accessibility — WCAG contrast

Aa
#cacf98 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#cacf98 on black: 12.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D7CA94
deuteranopia · #D7CB9A
tritanopia · #D1C8C0

Color scale — 50 to 950

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

#F9FAF5
#F3F4EB
#E7E8D3
#D8DBB2
#cacf98
#B0B866
#9FA74E
#848B41
#6A6F34
#4E5229
#313319
Base = 400Lightest = 50 · #F9FAF5Darkest = 950 · #313319
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F3F4EB;
  --brand-200: #E7E8D3;
  --brand-300: #D8DBB2;
  --brand-400: #cacf98;
  --brand-500: #B0B866;
  --brand-600: #9FA74E;
  --brand-700: #848B41;
  --brand-800: #6A6F34;
  --brand-900: #4E5229;
  --brand-950: #313319;
  --brand: #cacf98;
  --brand-ink: #000000;
}

Colors that work with #cacf98

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#FAFAF5
Tinted page background
Border#E2E5C7
Hairlines and dividers
Muted text#949B4B
Captions on the surface
Accent#3D4A8F
Second voice, not a rival
Dark variant#535729
Hover, pressed, headers
Light variant#F6F7EE
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 #cacf98

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • White text placed on it
  • 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#9D98CF
Analogous left#CFB998
Analogous right#AECF98
Split-complement 1#98AECF
Split-complement 2#B998CF
Triadic 1#98CACF
Triadic 2#CF98CA
Tetradic#98CFB9

RGB percentages

Red79.2%
Green81.2%
Blue59.6%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow26.6%
Key (black)18.8%

Color previews

#cacf98 text on a black background

contrast 12.89:1

Card sample

#cacf98 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacf98

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.

#cacf98 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#cacf98, answered

What color is #cacf98?

#cacf98 is a light soft yellow, closest to Pale Goldenrod (ΔE2000 7.1). It sits at 66° on the hue wheel with 36% saturation and 70% lightness, which reads as warm.

What is the RGB value of #cacf98?

rgb(202, 207, 152) — 202 red, 207 green and 152 blue out of 255, or 79.2% / 81.2% / 59.6% by channel.

Is #cacf98 a light or a dark color?

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

Should I use black or white text on #cacf98?

Black. It scores 12.89:1 against #cacf98, versus 1.63:1 for white — AAA at any size.

What is the complementary color of #cacf98?

#9D98CF sits directly opposite on the wheel. Softer options are the split-complements #98AECF and #B998CF, which give the same contrast with far less vibration.

What colors go well with #cacf98?

For interface work: #FAFAF5 as the surface, #E2E5C7 for borders, #949B4B for secondary text, #3D4A8F as an accent and #535729 for hover and pressed states. For a palette, the analogous pair #CFB998 and #AECF98 stays calm, while #9D98CF is the loudest partner.

What is #cacf98 in CMYK for printing?

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

Is #cacf98 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CFC098; nudged cooler, #B6D197.

Work with #cacf98 in the Color Lab