Skip to content

#c5c01b

a dark, electric yellow · warm · closest name: Dark Khaki

RGB
197, 192, 27
HSL
58°, 76%, 44%
CMYK
0, 3, 86, 23
Luminance
0.4965

At a glance

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

Hex
#c5c01b
Hue
58°
yellow
Saturation
76%
electric
Lightness
44%
dark
Brightness
77%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4965
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.93:1
Closest name
Dark Khaki
ΔE2000 9.8
Where it sits
Hue58° of 360°
Saturation76%
Lightness44%
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#c5c01b
RGBrgb(197, 192, 27)
HSLhsl(58, 76%, 44%)
CMYKcmyk(0%, 3%, 86%, 23%)
LABlab(75.8 -14.9 73.2)
LCHlch(75.8 74.7 101.5)
OKLCHoklch(0.787 0.164 107.7)
Decimal12959771
Display P3color(display-p3 0.773 0.753 0.106)

Copy-ready code

/* CSS */
color: #c5c01b;
background-color: #c5c01b;
/* Tailwind (arbitrary) */
class="text-[#c5c01b] bg-[#c5c01b]"
/* SCSS */
$brand: #c5c01b;
/* SwiftUI */
Color(red: 0.773, green: 0.753, blue: 0.106)
/* Android */
Color.parseColor("#c5c01b")
/* Flutter */
Color(0xFFC5C01B)
/* Python / OpenCV (BGR) */
(27, 192, 197)

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

Accessibility — WCAG contrast

Aa
#c5c01b on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#c5c01b on black: 10.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D1B800
deuteranopia · #D4BD2D
tritanopia · #D4B3A4

Color scale — 50 to 950

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

#FCFCF3
#F9F8E7
#F4F3C8
#F1EF9C
#EBE76B
#E4DF3A
#D7D21D
#c5c01b
#908C14
#686512
#413F0C
Base = 700Lightest = 50 · #FCFCF3Darkest = 950 · #413F0C
:root {
  --brand-50: #FCFCF3;
  --brand-100: #F9F8E7;
  --brand-200: #F4F3C8;
  --brand-300: #F1EF9C;
  --brand-400: #EBE76B;
  --brand-500: #E4DF3A;
  --brand-600: #D7D21D;
  --brand-700: #c5c01b;
  --brand-800: #908C14;
  --brand-900: #686512;
  --brand-950: #413F0C;
  --brand: #c5c01b;
  --brand-ink: #000000;
}

Colors that work with #c5c01b

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#9B994B
Captions on the surface
Accent#1749C9
Second voice, not a rival
Dark variant#706D0F
Hover, pressed, headers
Light variant#FCFBE9
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 #c5c01b

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#1B20C5
Analogous left#C56B1B
Analogous right#75C51B
Split-complement 1#1B75C5
Split-complement 2#6B1BC5
Triadic 1#1BC5C0
Triadic 2#C01BC5
Tetradic#1BC56B

RGB percentages

Red77.3%
Green75.3%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow86.3%
Key (black)22.7%

Color previews

#c5c01b text on a black background

contrast 10.93:1

Card sample

#c5c01b text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(197, 192, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 192, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c5c01b;
background: linear-gradient(135deg, #c5c01b, #59C51B);

Monochromatic scale

Palettes built from #c5c01b

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.

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

#c5c01b, answered

What color is #c5c01b?

#c5c01b is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.8). It sits at 58° on the hue wheel with 76% saturation and 44% lightness, which reads as warm.

What is the RGB value of #c5c01b?

rgb(197, 192, 27) — 197 red, 192 green and 27 blue out of 255, or 77.3% / 75.3% / 10.6% by channel.

Is #c5c01b a light or a dark color?

It is a mid-tone. Relative luminance is 0.4965 and perceived brightness is 72%, so black text on it reaches 10.93:1.

Should I use black or white text on #c5c01b?

Black. It scores 10.93:1 against #c5c01b, versus 1.92:1 for white — AAA at any size.

What is the complementary color of #c5c01b?

#1B20C5 sits directly opposite on the wheel. Softer options are the split-complements #1B75C5 and #6B1BC5, which give the same contrast with far less vibration.

What colors go well with #c5c01b?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #1749C9 as an accent and #706D0F for hover and pressed states. For a palette, the analogous pair #C56B1B and #75C51B stays calm, while #1B20C5 is the loudest partner.

What is #c5c01b in CMYK for printing?

cmyk(0%, 3%, 86%, 23%). 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 #c5c01b 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 #C58B1B; nudged cooler, #8CC719.

Work with #c5c01b in the Color Lab