#af951c
a dark, vivid yellow · warm · closest name: Dark Goldenrod
At a glance
Every number on this page in one read: what #af951c 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 | #af951c |
| RGB | rgb(175, 149, 28) |
| HSL | hsl(49, 72%, 40%) |
| CMYK | cmyk(0%, 15%, 84%, 31%) |
| LAB | lab(62.3 -2.1 60.9) |
| LCH | lch(62.3 61.0 92.0) |
| OKLCH | oklch(0.674 0.131 95.7) |
| Decimal | 11506972 |
| Display P3 | color(display-p3 0.686 0.584 0.110) |
Copy-ready code
/* CSS */
color: #af951c;
background-color: #af951c;
/* Tailwind (arbitrary) */
class="text-[#af951c] bg-[#af951c]"
/* SCSS */
$brand: #af951c;
/* SwiftUI */
Color(red: 0.686, green: 0.584, blue: 0.110)
/* Android */
Color.parseColor("#af951c")
/* Flutter */
Color(0xFFAF951C)
/* Python / OpenCV (BGR) */
(28, 149, 175)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. #af951c 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: #FCFAF3;
--brand-100: #F8F5E7;
--brand-200: #F3ECC9;
--brand-300: #F0E19E;
--brand-400: #E8D26E;
--brand-500: #E0C33E;
--brand-600: #D3B422;
--brand-700: #af951c;
--brand-800: #8D7817;
--brand-900: #665814;
--brand-950: #40370D;
--brand: #af951c;
--brand-ink: #000000;
}Colors that work with #af951c
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 #af951c
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 | #1C36AF | Directly opposite — maximum tension | |
| Analogous left | #AF4C1C | Neighbour, quieter | |
| Analogous right | #7FAF1C | Neighbour, quieter | |
| Split-complement 1 | #1C7FAF | Contrast without the clash | |
| Split-complement 2 | #4C1CAF | Contrast without the clash | |
| Triadic 1 | #1CAF95 | Even thirds — balanced and loud | |
| Triadic 2 | #951CAF | Even thirds — balanced and loud | |
| Tetradic | #1CAF4C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af951c text on a black background
contrast 7.14:1
#af951c text on a white background
contrast 2.94:1
CSS3 live lab
The quick brown fox
color: #af951c;
background-color: #af951c;
Glowing headline
text-shadow: 2px 2px 8px #af951c;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 149, 28, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 149, 28, 0.45);
border: 3px solid #af951c; background: linear-gradient(135deg, #af951c, #67AF1C);
Monochromatic scale
Palettes built from #af951c
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: Goldenrod (#daa520) — ΔE2000 9.7 away, with its history, psychology and brand usage.
#af951c in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#af951c, answered
What color is #af951c?
#af951c is a dark vivid yellow, closest to Dark Goldenrod (ΔE2000 8.1). It sits at 49° on the hue wheel with 72% saturation and 40% lightness, which reads as warm.
What is the RGB value of #af951c?
rgb(175, 149, 28) — 175 red, 149 green and 28 blue out of 255, or 68.6% / 58.4% / 11% by channel.
Is #af951c a light or a dark color?
It is a mid-tone. Relative luminance is 0.3069 and perceived brightness is 59%, so black text on it reaches 7.14:1.
Should I use black or white text on #af951c?
Black. It scores 7.14:1 against #af951c, versus 2.94:1 for white — AAA at any size.
What is the complementary color of #af951c?
#1C36AF sits directly opposite on the wheel. Softer options are the split-complements #1C7FAF and #4C1CAF, which give the same contrast with far less vibration.
What colors go well with #af951c?
For interface work: #FAF9F4 as the surface, #EDE5C0 for borders, #9B8D4B for secondary text, #185AB3 as an accent and #6E5E12 for hover and pressed states. For a palette, the analogous pair #AF4C1C and #7FAF1C stays calm, while #1C36AF is the loudest partner.
What is #af951c in CMYK for printing?
cmyk(0%, 15%, 84%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af951c warm or cool?
Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF711C; nudged cooler, #94B11A.