Skip to content

#cac71c

a balanced, electric yellow · warm · closest name: Gold

RGB
202, 199, 28
HSL
59°, 76%, 45%
CMYK
0, 2, 86, 21
Luminance
0.5349

At a glance

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

Hex
#cac71c
Hue
59°
yellow
Saturation
76%
electric
Lightness
45%
balanced
Brightness
79%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5349
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.70:1
Closest name
Gold
ΔE2000 10.6
Where it sits
Hue59° of 360°
Saturation76%
Lightness45%
Temperature
Warm ← → Cool24% 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#cac71c
RGBrgb(202, 199, 28)
HSLhsl(59, 76%, 45%)
CMYKcmyk(0%, 2%, 86%, 21%)
LABlab(78.2 -16.2 75.1)
LCHlch(78.2 76.8 102.2)
OKLCHoklch(0.806 0.169 108.5)
Decimal13289244
Display P3color(display-p3 0.792 0.780 0.110)

Copy-ready code

/* CSS */
color: #cac71c;
background-color: #cac71c;
/* Tailwind (arbitrary) */
class="text-[#cac71c] bg-[#cac71c]"
/* SCSS */
$brand: #cac71c;
/* SwiftUI */
Color(red: 0.792, green: 0.780, blue: 0.110)
/* Android */
Color.parseColor("#cac71c")
/* Flutter */
Color(0xFFCAC71C)
/* Python / OpenCV (BGR) */
(28, 199, 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 #cac71c · 11.70:1
Use #000000AAA at every size.
Aa
White text · 1.80:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.70:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cac71c as text scores 1.80:1 on white and 11.70:1 on black.

Accessibility — WCAG contrast

Aa
#cac71c on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#cac71c on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D8BE00
deuteranopia · #DBC42F
tritanopia · #D9B9AA

Color scale — 50 to 950

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

#FCFCF3
#F9F8E7
#F4F3C8
#F1F09C
#EBE86B
#E4E13A
#cac71c
#B3B119
#8F8D14
#686613
#41400C
Base = 600Lightest = 50 · #FCFCF3Darkest = 950 · #41400C
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F8E7;
  --brand-200: #F4F3C8;
  --brand-300: #F1F09C;
  --brand-400: #EBE86B;
  --brand-500: #E4E13A;
  --brand-600: #cac71c;
  --brand-700: #B3B119;
  --brand-800: #8F8D14;
  --brand-900: #686613;
  --brand-950: #41400C;
  --brand: #cac71c;
  --brand-ink: #000000;
}

Colors that work with #cac71c

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#EDECC0
Hairlines and dividers
Muted text#9B9A4B
Captions on the surface
Accent#1748CF
Second voice, not a rival
Dark variant#706E0F
Hover, pressed, headers
Light variant#FCFCE9
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 #cac71c

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#1C1FCA
Analogous left#CA701C
Analogous right#76CA1C
Split-complement 1#1C76CA
Split-complement 2#701CCA
Triadic 1#1CCAC7
Triadic 2#C71CCA
Tetradic#1CCA70

RGB percentages

Red79.2%
Green78.0%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow86.1%
Key (black)20.8%

Color previews

#cac71c text on a black background

contrast 11.70:1

Card sample

#cac71c text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 199, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 199, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cac71c;
background: linear-gradient(135deg, #cac71c, #59CA1C);

Monochromatic scale

Palettes built from #cac71c

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.

#cac71c 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cac71c, answered

What color is #cac71c?

#cac71c is a balanced electric yellow, closest to Gold (ΔE2000 10.6). It sits at 59° on the hue wheel with 76% saturation and 45% lightness, which reads as warm.

What is the RGB value of #cac71c?

rgb(202, 199, 28) — 202 red, 199 green and 28 blue out of 255, or 79.2% / 78% / 11% by channel.

Is #cac71c a light or a dark color?

It is a light color. Relative luminance is 0.5349 and perceived brightness is 74%, so black text on it reaches 11.70:1.

Should I use black or white text on #cac71c?

Black. It scores 11.70:1 against #cac71c, versus 1.80:1 for white — AAA at any size.

What is the complementary color of #cac71c?

#1C1FCA sits directly opposite on the wheel. Softer options are the split-complements #1C76CA and #701CCA, which give the same contrast with far less vibration.

What colors go well with #cac71c?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B9A4B for secondary text, #1748CF as an accent and #706E0F for hover and pressed states. For a palette, the analogous pair #CA701C and #76CA1C stays calm, while #1C1FCA is the loudest partner.

What is #cac71c in CMYK for printing?

cmyk(0%, 2%, 86%, 21%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #cac71c warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CA901C; nudged cooler, #8ECC1A.

Work with #cac71c in the Color Lab