Skip to content

#ccc93b

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

RGB
204, 201, 59
HSL
59°, 59%, 52%
CMYK
0, 2, 71, 20
Luminance
0.5493

At a glance

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

Hex
#ccc93b
Hue
59°
yellow
Saturation
59%
vivid
Lightness
52%
balanced
Brightness
80%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5493
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.99:1
Closest name
Dark Khaki
ΔE2000 9.2
Where it sits
Hue59° of 360°
Saturation59%
Lightness52%
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#ccc93b
RGBrgb(204, 201, 59)
HSLhsl(59, 59%, 52%)
CMYKcmyk(0%, 2%, 71%, 20%)
LABlab(79.0 -15.3 67.2)
LCHlch(79.0 68.9 102.8)
OKLCHoklch(0.814 0.157 108.2)
Decimal13420859
Display P3color(display-p3 0.800 0.788 0.231)

Copy-ready code

/* CSS */
color: #ccc93b;
background-color: #ccc93b;
/* Tailwind (arbitrary) */
class="text-[#ccc93b] bg-[#ccc93b]"
/* SCSS */
$brand: #ccc93b;
/* SwiftUI */
Color(red: 0.800, green: 0.788, blue: 0.231)
/* Android */
Color.parseColor("#ccc93b")
/* Flutter */
Color(0xFFCCC93B)
/* Python / OpenCV (BGR) */
(59, 201, 204)

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

Accessibility — WCAG contrast

Aa
#ccc93b on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#ccc93b on black: 11.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DAC121
deuteranopia · #DCC645
tritanopia · #DBBCAD

Color scale — 50 to 950

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

#FBFBF4
#F7F6E9
#EFEECD
#E8E7A6
#DCDA79
#D1CE4D
#ccc93b
#A29F2A
#818022
#5E5D1C
#3B3A12
Base = 600Lightest = 50 · #FBFBF4Darkest = 950 · #3B3A12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFEECD;
  --brand-300: #E8E7A6;
  --brand-400: #DCDA79;
  --brand-500: #D1CE4D;
  --brand-600: #ccc93b;
  --brand-700: #A29F2A;
  --brand-800: #818022;
  --brand-900: #5E5D1C;
  --brand-950: #3B3A12;
  --brand: #ccc93b;
  --brand-ink: #000000;
}

Colors that work with #ccc93b

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#9B994B
Captions on the surface
Accent#3660D1
Second voice, not a rival
Dark variant#65641A
Hover, pressed, headers
Light variant#FAF9EB
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 #ccc93b

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#3B3ECC
Analogous left#CC813B
Analogous right#86CC3B
Split-complement 1#3B86CC
Split-complement 2#813BCC
Triadic 1#3BCCC9
Triadic 2#C93BCC
Tetradic#3BCC81

RGB percentages

Red80.0%
Green78.8%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta1.5%
Yellow71.1%
Key (black)20.0%

Color previews

#ccc93b text on a black background

contrast 11.99:1

Card sample

#ccc93b text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 201, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 201, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc93b;
background: linear-gradient(135deg, #ccc93b, #6ECC3B);

Monochromatic scale

Palettes built from #ccc93b

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.

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

#ccc93b, answered

What color is #ccc93b?

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

What is the RGB value of #ccc93b?

rgb(204, 201, 59) — 204 red, 201 green and 59 blue out of 255, or 80% / 78.8% / 23.1% by channel.

Is #ccc93b a light or a dark color?

It is a light color. Relative luminance is 0.5493 and perceived brightness is 75%, so black text on it reaches 11.99:1.

Should I use black or white text on #ccc93b?

Black. It scores 11.99:1 against #ccc93b, versus 1.75:1 for white — AAA at any size.

What is the complementary color of #ccc93b?

#3B3ECC sits directly opposite on the wheel. Softer options are the split-complements #3B86CC and #813BCC, which give the same contrast with far less vibration.

What colors go well with #ccc93b?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B994B for secondary text, #3660D1 as an accent and #65641A for hover and pressed states. For a palette, the analogous pair #CC813B and #86CC3B stays calm, while #3B3ECC is the loudest partner.

What is #ccc93b in CMYK for printing?

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

Is #ccc93b 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 #CC983B; nudged cooler, #9BCE39.

Work with #ccc93b in the Color Lab