Skip to content

#c2c91f

a balanced, vivid yellow · warm · closest name: Yellow Green

RGB
194, 201, 31
HSL
63°, 73%, 46%
CMYK
4, 0, 85, 21
Luminance
0.5334

At a glance

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

Hex
#c2c91f
Hue
63°
yellow
Saturation
73%
vivid
Lightness
46%
balanced
Brightness
79%
HSV value
Perceived
73%
weighted brightness
Luminance
0.5334
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.67:1
Closest name
Yellow Green
ΔE2000 9.2
Where it sits
Hue63° of 360°
Saturation73%
Lightness46%
Temperature
Warm ← → Cool27% 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#c2c91f
RGBrgb(194, 201, 31)
HSLhsl(63, 73%, 46%)
CMYKcmyk(4%, 0%, 85%, 21%)
LABlab(78.1 -20.5 74.1)
LCHlch(78.1 76.9 105.5)
OKLCHoklch(0.804 0.172 112.3)
Decimal12765471
Display P3color(display-p3 0.761 0.788 0.122)

Copy-ready code

/* CSS */
color: #c2c91f;
background-color: #c2c91f;
/* Tailwind (arbitrary) */
class="text-[#c2c91f] bg-[#c2c91f]"
/* SCSS */
$brand: #c2c91f;
/* SwiftUI */
Color(red: 0.761, green: 0.788, blue: 0.122)
/* Android */
Color.parseColor("#c2c91f")
/* Flutter */
Color(0xFFC2C91F)
/* Python / OpenCV (BGR) */
(31, 201, 194)

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

Accessibility — WCAG contrast

Aa
#c2c91f on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#c2c91f on black: 11.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9BF00
deuteranopia · #DAC332
tritanopia · #D0BCAC

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c2c91f is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFCF3
#F8F8E7
#F1F3C8
#EDF09E
#E3E96D
#DAE13D
#c2c91f
#ABB11B
#888D16
#636614
#3E400C
Base = 600Lightest = 50 · #FBFCF3Darkest = 950 · #3E400C
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F8F8E7;
  --brand-200: #F1F3C8;
  --brand-300: #EDF09E;
  --brand-400: #E3E96D;
  --brand-500: #DAE13D;
  --brand-600: #c2c91f;
  --brand-700: #ABB11B;
  --brand-800: #888D16;
  --brand-900: #636614;
  --brand-950: #3E400C;
  --brand: #c2c91f;
  --brand-ink: #000000;
}

Colors that work with #c2c91f

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#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#1A40CE
Second voice, not a rival
Dark variant#6B6E11
Hover, pressed, headers
Light variant#FBFCE9
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 #c2c91f

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
  • 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
  • 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#261FC9
Analogous left#C97B1F
Analogous right#6DC91F
Split-complement 1#1F6DC9
Split-complement 2#7B1FC9
Triadic 1#1FC2C9
Triadic 2#C91FC2
Tetradic#1FC97B

RGB percentages

Red76.1%
Green78.8%
Blue12.2%

CMYK percentages

Cyan3.5%
Magenta0.0%
Yellow84.6%
Key (black)21.2%

Color previews

#c2c91f text on a black background

contrast 11.67:1

Card sample

#c2c91f text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 201, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 201, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2c91f;
background: linear-gradient(135deg, #c2c91f, #51C91F);

Monochromatic scale

Palettes built from #c2c91f

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.

#c2c91f 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

Converts to four-color process without much drama. Proof it anyway.

#c2c91f, answered

What color is #c2c91f?

#c2c91f is a balanced vivid yellow, closest to Yellow Green (ΔE2000 9.2). It sits at 63° on the hue wheel with 73% saturation and 46% lightness, which reads as warm.

What is the RGB value of #c2c91f?

rgb(194, 201, 31) — 194 red, 201 green and 31 blue out of 255, or 76.1% / 78.8% / 12.2% by channel.

Is #c2c91f a light or a dark color?

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

Should I use black or white text on #c2c91f?

Black. It scores 11.67:1 against #c2c91f, versus 1.80:1 for white — AAA at any size.

What is the complementary color of #c2c91f?

#261FC9 sits directly opposite on the wheel. Softer options are the split-complements #1F6DC9 and #7B1FC9, which give the same contrast with far less vibration.

What colors go well with #c2c91f?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #1A40CE as an accent and #6B6E11 for hover and pressed states. For a palette, the analogous pair #C97B1F and #6DC91F stays calm, while #261FC9 is the loudest partner.

What is #c2c91f in CMYK for printing?

cmyk(4%, 0%, 85%, 21%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #c2c91f warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C9931F; nudged cooler, #84CB1D.

Work with #c2c91f in the Color Lab