Skip to content

#ccc30b

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

RGB
204, 195, 11
HSL
57°, 90%, 42%
CMYK
0, 4, 95, 20
Luminance
0.5189

At a glance

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

Hex
#ccc30b
Hue
57°
yellow
Saturation
90%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5189
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.38:1
Closest name
Gold
ΔE2000 9.7
Where it sits
Hue57° of 360°
Saturation90%
Lightness42%
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#ccc30b
RGBrgb(204, 195, 11)
HSLhsl(57, 90%, 42%)
CMYKcmyk(0%, 4%, 95%, 20%)
LABlab(77.2 -13.6 77.0)
LCHlch(77.2 78.2 100.0)
OKLCHoklch(0.799 0.169 106.3)
Decimal13419275
Display P3color(display-p3 0.800 0.765 0.043)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccc30b on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#ccc30b on black: 11.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5BB00
deuteranopia · #D9C126
tritanopia · #DCB5A6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ccc30b 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
#FBFAE5
#F8F6C3
#F9F595
#F6EF5F
#F4EA2A
#E8DE0C
#ccc30b
#9B9408
#706B0B
#464307
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #464307
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBFAE5;
  --brand-200: #F8F6C3;
  --brand-300: #F9F595;
  --brand-400: #F6EF5F;
  --brand-500: #F4EA2A;
  --brand-600: #E8DE0C;
  --brand-700: #ccc30b;
  --brand-800: #9B9408;
  --brand-900: #706B0B;
  --brand-950: #464307;
  --brand: #ccc30b;
  --brand-ink: #000000;
}

Colors that work with #ccc30b

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#9B974B
Captions on the surface
Accent#0743D1
Second voice, not a rival
Dark variant#797407
Hover, pressed, headers
Light variant#FEFDE7
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 #ccc30b

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#0B14CC
Analogous left#CC630B
Analogous right#75CC0B
Split-complement 1#0B75CC
Split-complement 2#630BCC
Triadic 1#0BCCC3
Triadic 2#C30BCC
Tetradic#0BCC63

RGB percentages

Red80.0%
Green76.5%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow94.6%
Key (black)20.0%

Color previews

#ccc30b text on a black background

contrast 11.38:1

Card sample

#ccc30b text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc30b

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.

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

#ccc30b, answered

What color is #ccc30b?

#ccc30b is a dark electric yellow, closest to Gold (ΔE2000 9.7). It sits at 57° on the hue wheel with 90% saturation and 42% lightness, which reads as warm.

What is the RGB value of #ccc30b?

rgb(204, 195, 11) — 204 red, 195 green and 11 blue out of 255, or 80% / 76.5% / 4.3% by channel.

Is #ccc30b a light or a dark color?

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

Should I use black or white text on #ccc30b?

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

What is the complementary color of #ccc30b?

#0B14CC sits directly opposite on the wheel. Softer options are the split-complements #0B75CC and #630BCC, which give the same contrast with far less vibration.

What colors go well with #ccc30b?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #0743D1 as an accent and #797407 for hover and pressed states. For a palette, the analogous pair #CC630B and #75CC0B stays calm, while #0B14CC is the loudest partner.

What is #ccc30b in CMYK for printing?

cmyk(0%, 4%, 95%, 20%). 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 #ccc30b 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 #CC8B0B; nudged cooler, #8FCE09.

Work with #ccc30b in the Color Lab