#cccf08
a dark, electric yellow · warm · closest name: Gold
At a glance
Every number on this page in one read: what #cccf08 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #cccf08 |
| RGB | rgb(204, 207, 8) |
| HSL | hsl(61, 93%, 42%) |
| CMYK | cmyk(1%, 0%, 96%, 19%) |
| LAB | lab(80.5 -19.6 79.7) |
| LCH | lch(80.5 82.1 103.8) |
| OKLCH | oklch(0.825 0.180 110.8) |
| Decimal | 13422344 |
| Display P3 | color(display-p3 0.800 0.812 0.031) |
Copy-ready code
/* CSS */
color: #cccf08;
background-color: #cccf08;
/* Tailwind (arbitrary) */
class="text-[#cccf08] bg-[#cccf08]"
/* SCSS */
$brand: #cccf08;
/* SwiftUI */
Color(red: 0.800, green: 0.812, blue: 0.031)
/* Android */
Color.parseColor("#cccf08")
/* Flutter */
Color(0xFFCCCF08)
/* Python / OpenCV (BGR) */
(8, 207, 204)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #cccf08 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.
:root {
--brand-50: #FDFDF2;
--brand-100: #FBFBE4;
--brand-200: #F8F9C2;
--brand-300: #F9FB93;
--brand-400: #F6F95D;
--brand-500: #F4F727;
--brand-600: #E8EC09;
--brand-700: #cccf08;
--brand-800: #9B9D06;
--brand-900: #707109;
--brand-950: #464706;
--brand: #cccf08;
--brand-ink: #000000;
}Colors that work with #cccf08
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #cccf08
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #0B08CF | Directly opposite — maximum tension | |
| Analogous left | #CF6F08 | Neighbour, quieter | |
| Analogous right | #69CF08 | Neighbour, quieter | |
| Split-complement 1 | #0869CF | Contrast without the clash | |
| Split-complement 2 | #6F08CF | Contrast without the clash | |
| Triadic 1 | #08CCCF | Even thirds — balanced and loud | |
| Triadic 2 | #CF08CC | Even thirds — balanced and loud | |
| Tetradic | #08CF6F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cccf08 text on a black background
contrast 12.50:1
#cccf08 text on a white background
contrast 1.68:1
CSS3 live lab
The quick brown fox
color: #cccf08;
background-color: #cccf08;
Glowing headline
text-shadow: 2px 2px 8px #cccf08;
Soft neon halo
text-shadow: 0 0 14px rgba(204, 207, 8, 0.45);
box-shadow: 0 12px 32px -8px rgba(204, 207, 8, 0.45);
border: 3px solid #cccf08; background: linear-gradient(135deg, #cccf08, #47CF08);
Monochromatic scale
Palettes built from #cccf08
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.
Closest color with a full write-up: Dandelion (#f0e130) — ΔE2000 6.4 away, with its history, psychology and brand usage.
#cccf08 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#cccf08, answered
What color is #cccf08?
#cccf08 is a dark electric yellow, closest to Gold (ΔE2000 10.8). It sits at 61° on the hue wheel with 93% saturation and 42% lightness, which reads as warm.
What is the RGB value of #cccf08?
rgb(204, 207, 8) — 204 red, 207 green and 8 blue out of 255, or 80% / 81.2% / 3.1% by channel.
Is #cccf08 a light or a dark color?
It is a light color. Relative luminance is 0.5748 and perceived brightness is 76%, so black text on it reaches 12.50:1.
Should I use black or white text on #cccf08?
Black. It scores 12.50:1 against #cccf08, versus 1.68:1 for white — AAA at any size.
What is the complementary color of #cccf08?
#0B08CF sits directly opposite on the wheel. Softer options are the split-complements #0869CF and #6F08CF, which give the same contrast with far less vibration.
What colors go well with #cccf08?
For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #0435D4 as an accent and #797B05 for hover and pressed states. For a palette, the analogous pair #CF6F08 and #69CF08 stays calm, while #0B08CF is the loudest partner.
What is #cccf08 in CMYK for printing?
cmyk(1%, 0%, 96%, 19%). 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 #cccf08 warm or cool?
Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF9208; nudged cooler, #84D106.