Skip to content

#ccc310

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

RGB
204, 195, 16
HSL
57°, 86%, 43%
CMYK
0, 4, 92, 20
Luminance
0.5190

At a glance

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

Hex
#ccc310
Hue
57°
yellow
Saturation
86%
electric
Lightness
43%
dark
Brightness
80%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5190
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.38:1
Closest name
Gold
ΔE2000 9.8
Where it sits
Hue57° 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#ccc310
RGBrgb(204, 195, 16)
HSLhsl(57, 86%, 43%)
CMYKcmyk(0%, 4%, 92%, 20%)
LABlab(77.2 -13.6 76.4)
LCHlch(77.2 77.6 100.1)
OKLCHoklch(0.799 0.168 106.2)
Decimal13419280
Display P3color(display-p3 0.800 0.765 0.063)

Copy-ready code

/* CSS */
color: #ccc310;
background-color: #ccc310;
/* Tailwind (arbitrary) */
class="text-[#ccc310] bg-[#ccc310]"
/* SCSS */
$brand: #ccc310;
/* SwiftUI */
Color(red: 0.800, green: 0.765, blue: 0.063)
/* Android */
Color.parseColor("#ccc310")
/* Flutter */
Color(0xFFCCC310)
/* Python / OpenCV (BGR) */
(16, 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 #ccc310 · 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: #ccc310 as text scores 1.85:1 on white and 11.38:1 on black.

Accessibility — WCAG contrast

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

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ccc310 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
#F7F4C5
#F7F297
#F3EC63
#EFE52F
#E3D912
#ccc310
#97910C
#6D690D
#444108
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #444108
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FAF9E5;
  --brand-200: #F7F4C5;
  --brand-300: #F7F297;
  --brand-400: #F3EC63;
  --brand-500: #EFE52F;
  --brand-600: #E3D912;
  --brand-700: #ccc310;
  --brand-800: #97910C;
  --brand-900: #6D690D;
  --brand-950: #444108;
  --brand: #ccc310;
  --brand-ink: #000000;
}

Colors that work with #ccc310

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#EDEAC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#0C46D0
Second voice, not a rival
Dark variant#767109
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 #ccc310

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#1019CC
Analogous left#CC6510
Analogous right#77CC10
Split-complement 1#1077CC
Split-complement 2#6510CC
Triadic 1#10CCC3
Triadic 2#C310CC
Tetradic#10CC65

RGB percentages

Red80.0%
Green76.5%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta4.4%
Yellow92.2%
Key (black)20.0%

Color previews

#ccc310 text on a black background

contrast 11.38:1

Card sample

#ccc310 text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccc310

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.

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

#ccc310, answered

What color is #ccc310?

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

What is the RGB value of #ccc310?

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

Is #ccc310 a light or a dark color?

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

Should I use black or white text on #ccc310?

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

What is the complementary color of #ccc310?

#1019CC sits directly opposite on the wheel. Softer options are the split-complements #1077CC and #6510CC, which give the same contrast with far less vibration.

What colors go well with #ccc310?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B974B for secondary text, #0C46D0 as an accent and #767109 for hover and pressed states. For a palette, the analogous pair #CC6510 and #77CC10 stays calm, while #1019CC is the loudest partner.

What is #ccc310 in CMYK for printing?

cmyk(0%, 4%, 92%, 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 #ccc310 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 #CC8C10; nudged cooler, #91CE0E.

Work with #ccc310 in the Color Lab