Skip to content

#cec310

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

RGB
206, 195, 16
HSL
57°, 86%, 44%
CMYK
0, 5, 92, 19
Luminance
0.5219

At a glance

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

Hex
#cec310
Hue
57°
yellow
Saturation
86%
electric
Lightness
44%
dark
Brightness
81%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5219
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
11.44:1
Closest name
Gold
ΔE2000 9.3
Where it sits
Hue57° of 360°
Saturation86%
Lightness44%
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#cec310
RGBrgb(206, 195, 16)
HSLhsl(57, 86%, 44%)
CMYKcmyk(0%, 5%, 92%, 19%)
LABlab(77.4 -12.7 76.6)
LCHlch(77.4 77.6 99.4)
OKLCHoklch(0.801 0.168 105.4)
Decimal13550352
Display P3color(display-p3 0.808 0.765 0.063)

Copy-ready code

/* CSS */
color: #cec310;
background-color: #cec310;
/* Tailwind (arbitrary) */
class="text-[#cec310] bg-[#cec310]"
/* SCSS */
$brand: #cec310;
/* SwiftUI */
Color(red: 0.808, green: 0.765, blue: 0.063)
/* Android */
Color.parseColor("#cec310")
/* Flutter */
Color(0xFFCEC310)
/* Python / OpenCV (BGR) */
(16, 195, 206)

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

Accessibility — WCAG contrast

Aa
#cec310 on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#cec310 on black: 11.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D5BC00
deuteranopia · #D9C228
tritanopia · #DEB5A6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cec310 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
#F7F197
#F3EA63
#EFE42F
#E3D712
#cec310
#978F0C
#6D680D
#444108
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #444108
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FAF9E5;
  --brand-200: #F7F4C5;
  --brand-300: #F7F197;
  --brand-400: #F3EA63;
  --brand-500: #EFE42F;
  --brand-600: #E3D712;
  --brand-700: #cec310;
  --brand-800: #978F0C;
  --brand-900: #6D680D;
  --brand-950: #444108;
  --brand: #cec310;
  --brand-ink: #000000;
}

Colors that work with #cec310

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#9B964B
Captions on the surface
Accent#0C49D2
Second voice, not a rival
Dark variant#767009
Hover, pressed, headers
Light variant#FDFCE7
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 #cec310

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#101BCE
Analogous left#CE6410
Analogous right#7ACE10
Split-complement 1#107ACE
Split-complement 2#6410CE
Triadic 1#10CEC3
Triadic 2#C310CE
Tetradic#10CE64

RGB percentages

Red80.8%
Green76.5%
Blue6.3%

CMYK percentages

Cyan0.0%
Magenta5.3%
Yellow92.2%
Key (black)19.2%

Color previews

#cec310 text on a black background

contrast 11.44:1

Card sample

#cec310 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec310

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.

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

#cec310, answered

What color is #cec310?

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

What is the RGB value of #cec310?

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

Is #cec310 a light or a dark color?

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

Should I use black or white text on #cec310?

Black. It scores 11.44:1 against #cec310, versus 1.84:1 for white — AAA at any size.

What is the complementary color of #cec310?

#101BCE sits directly opposite on the wheel. Softer options are the split-complements #107ACE and #6410CE, which give the same contrast with far less vibration.

What colors go well with #cec310?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #0C49D2 as an accent and #767009 for hover and pressed states. For a palette, the analogous pair #CE6410 and #7ACE10 stays calm, while #101BCE is the loudest partner.

What is #cec310 in CMYK for printing?

cmyk(0%, 5%, 92%, 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 #cec310 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 #CE8D10; nudged cooler, #94D00E.

Work with #cec310 in the Color Lab