Skip to content

#cac30f

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

RGB
202, 195, 15
HSL
58°, 86%, 43%
CMYK
0, 4, 93, 21
Luminance
0.5162

At a glance

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

Hex
#cac30f
Hue
58°
yellow
Saturation
86%
electric
Lightness
43%
dark
Brightness
79%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5162
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.32:1
Closest name
Gold
ΔE2000 10.2
Where it sits
Hue58° of 360°
Saturation86%
Lightness43%
Temperature
Warm ← → Cool23% 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#cac30f
RGBrgb(202, 195, 15)
HSLhsl(58, 86%, 43%)
CMYKcmyk(0%, 4%, 93%, 21%)
LABlab(77.0 -14.4 76.3)
LCHlch(77.0 77.7 100.7)
OKLCHoklch(0.797 0.169 107.0)
Decimal13288207
Display P3color(display-p3 0.792 0.765 0.059)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cac30f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#cac30f on black: 11.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5BB00
deuteranopia · #D8C128
tritanopia · #DAB5A6

Color scale — 50 to 950

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

#FDFCF2
#FAF9E5
#F7F5C5
#F7F497
#F3EE62
#F0E82E
#E4DC11
#cac30f
#98930B
#6E6A0D
#454208
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #454208
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FAF9E5;
  --brand-200: #F7F5C5;
  --brand-300: #F7F497;
  --brand-400: #F3EE62;
  --brand-500: #F0E82E;
  --brand-600: #E4DC11;
  --brand-700: #cac30f;
  --brand-800: #98930B;
  --brand-900: #6E6A0D;
  --brand-950: #454208;
  --brand: #cac30f;
  --brand-ink: #000000;
}

Colors that work with #cac30f

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#EDEBC0
Hairlines and dividers
Muted text#9B984B
Captions on the surface
Accent#0B43CE
Second voice, not a rival
Dark variant#777309
Hover, pressed, headers
Light variant#FDFCE7
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 #cac30f

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black 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#0F16CA
Analogous left#CA660F
Analogous right#73CA0F
Split-complement 1#0F73CA
Split-complement 2#660FCA
Triadic 1#0FCAC3
Triadic 2#C30FCA
Tetradic#0FCA66

RGB percentages

Red79.2%
Green76.5%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta3.5%
Yellow92.6%
Key (black)20.8%

Color previews

#cac30f text on a black background

contrast 11.32:1

Card sample

#cac30f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 195, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 195, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cac30f;
background: linear-gradient(135deg, #cac30f, #54CA0F);

Monochromatic scale

Palettes built from #cac30f

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.

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

#cac30f, answered

What color is #cac30f?

#cac30f is a dark electric yellow, closest to Gold (ΔE2000 10.2). It sits at 58° on the hue wheel with 86% saturation and 43% lightness, which reads as warm.

What is the RGB value of #cac30f?

rgb(202, 195, 15) — 202 red, 195 green and 15 blue out of 255, or 79.2% / 76.5% / 5.9% by channel.

Is #cac30f a light or a dark color?

It is a light color. Relative luminance is 0.5162 and perceived brightness is 73%, so black text on it reaches 11.32:1.

Should I use black or white text on #cac30f?

Black. It scores 11.32:1 against #cac30f, versus 1.85:1 for white — AAA at any size.

What is the complementary color of #cac30f?

#0F16CA sits directly opposite on the wheel. Softer options are the split-complements #0F73CA and #660FCA, which give the same contrast with far less vibration.

What colors go well with #cac30f?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B984B for secondary text, #0B43CE as an accent and #777309 for hover and pressed states. For a palette, the analogous pair #CA660F and #73CA0F stays calm, while #0F16CA is the loudest partner.

What is #cac30f in CMYK for printing?

cmyk(0%, 4%, 93%, 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 #cac30f warm or cool?

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

Work with #cac30f in the Color Lab