Skip to content

#cac366

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

RGB
202, 195, 102
HSL
56°, 49%, 60%
CMYK
0, 4, 50, 21
Luminance
0.5255

At a glance

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

Hex
#cac366
Hue
56°
yellow
Saturation
49%
vivid
Lightness
60%
balanced
Brightness
79%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5255
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.51:1
Closest name
Dark Khaki
ΔE2000 4.1
Where it sits
Hue56° of 360°
Saturation49%
Lightness60%
Temperature
Warm ← → Cool22% 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#cac366
RGBrgb(202, 195, 102)
HSLhsl(56, 49%, 60%)
CMYKcmyk(0%, 4%, 50%, 21%)
LABlab(77.6 -10.1 47.2)
LCHlch(77.6 48.3 102.1)
OKLCHoklch(0.803 0.116 104.8)
Decimal13288294
Display P3color(display-p3 0.792 0.765 0.400)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cac366 on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#cac366 on black: 11.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D1BD5E
deuteranopia · #D4C26A
tritanopia · #D6B8AD

Color scale — 50 to 950

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

#FAFAF4
#F5F5EA
#ECEAD0
#E2DEAC
#D4CE82
#cac366
#B6AD3F
#979135
#79742A
#595522
#373515
Base = 500Lightest = 50 · #FAFAF4Darkest = 950 · #373515
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F5F5EA;
  --brand-200: #ECEAD0;
  --brand-300: #E2DEAC;
  --brand-400: #D4CE82;
  --brand-500: #cac366;
  --brand-600: #B6AD3F;
  --brand-700: #979135;
  --brand-800: #79742A;
  --brand-900: #595522;
  --brand-950: #373515;
  --brand: #cac366;
  --brand-ink: #000000;
}

Colors that work with #cac366

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#EAE7C2
Hairlines and dividers
Muted text#9B954B
Captions on the surface
Accent#6285CE
Second voice, not a rival
Dark variant#5F5A21
Hover, pressed, headers
Light variant#F8F8EC
Selected rows, tints
Dark surface#242314
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 #cac366

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#666DCA
Analogous left#CA9166
Analogous right#9FCA66
Split-complement 1#669FCA
Split-complement 2#9166CA
Triadic 1#66CAC3
Triadic 2#C366CA
Tetradic#66CA91

RGB percentages

Red79.2%
Green76.5%
Blue40.0%

CMYK percentages

Cyan0.0%
Magenta3.5%
Yellow49.5%
Key (black)20.8%

Color previews

#cac366 text on a black background

contrast 11.51:1

Card sample

#cac366 text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cac366

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.

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

#cac366, answered

What color is #cac366?

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

What is the RGB value of #cac366?

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

Is #cac366 a light or a dark color?

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

Should I use black or white text on #cac366?

Black. It scores 11.51:1 against #cac366, versus 1.82:1 for white — AAA at any size.

What is the complementary color of #cac366?

#666DCA sits directly opposite on the wheel. Softer options are the split-complements #669FCA and #9166CA, which give the same contrast with far less vibration.

What colors go well with #cac366?

For interface work: #FAFAF4 as the surface, #EAE7C2 for borders, #9B954B for secondary text, #6285CE as an accent and #5F5A21 for hover and pressed states. For a palette, the analogous pair #CA9166 and #9FCA66 stays calm, while #666DCA is the loudest partner.

What is #cac366 in CMYK for printing?

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

Is #cac366 warm or cool?

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

Work with #cac366 in the Color Lab