#afb613
a dark, electric yellow · warm · closest name: Dark Khaki
At a glance
Every number on this page in one read: what #afb613 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 | #afb613 |
| RGB | rgb(175, 182, 19) |
| HSL | hsl(63, 81%, 39%) |
| CMYK | cmyk(4%, 0%, 90%, 29%) |
| LAB | lab(71.3 -19.5 70.3) |
| LCH | lch(71.3 73.0 105.5) |
| OKLCH | oklch(0.746 0.162 112.5) |
| Decimal | 11515411 |
| Display P3 | color(display-p3 0.686 0.714 0.075) |
Copy-ready code
/* CSS */
color: #afb613;
background-color: #afb613;
/* Tailwind (arbitrary) */
class="text-[#afb613] bg-[#afb613]"
/* SCSS */
$brand: #afb613;
/* SwiftUI */
Color(red: 0.686, green: 0.714, blue: 0.075)
/* Android */
Color.parseColor("#afb613")
/* Flutter */
Color(0xFFAFB613)
/* Python / OpenCV (BGR) */
(19, 182, 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. #afb613 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: #FCFCF3;
--brand-100: #F9F9E6;
--brand-200: #F3F6C6;
--brand-300: #F0F499;
--brand-400: #E9EF67;
--brand-500: #E2EA34;
--brand-600: #D5DE17;
--brand-700: #afb613;
--brand-800: #8E940F;
--brand-900: #676B10;
--brand-950: #40430A;
--brand: #afb613;
--brand-ink: #000000;
}Colors that work with #afb613
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 #afb613
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 | #1A13B6 | Directly opposite — maximum tension | |
| Analogous left | #B66C13 | Neighbour, quieter | |
| Analogous right | #5DB613 | Neighbour, quieter | |
| Split-complement 1 | #135DB6 | Contrast without the clash | |
| Split-complement 2 | #6C13B6 | Contrast without the clash | |
| Triadic 1 | #13AFB6 | Even thirds — balanced and loud | |
| Triadic 2 | #B613AF | Even thirds — balanced and loud | |
| Tetradic | #13B66C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#afb613 text on a black background
contrast 9.52:1
#afb613 text on a white background
contrast 2.21:1
CSS3 live lab
The quick brown fox
color: #afb613;
background-color: #afb613;
Glowing headline
text-shadow: 2px 2px 8px #afb613;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 182, 19, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 182, 19, 0.45);
border: 3px solid #afb613; background: linear-gradient(135deg, #afb613, #42B613);
Monochromatic scale
Palettes built from #afb613
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 12.8 away, with its history, psychology and brand usage.
#afb613 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.
#afb613, answered
What color is #afb613?
#afb613 is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.5). It sits at 63° on the hue wheel with 81% saturation and 39% lightness, which reads as warm.
What is the RGB value of #afb613?
rgb(175, 182, 19) — 175 red, 182 green and 19 blue out of 255, or 68.6% / 71.4% / 7.5% by channel.
Is #afb613 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4262 and perceived brightness is 66%, so black text on it reaches 9.52:1.
Should I use black or white text on #afb613?
Black. It scores 9.52:1 against #afb613, versus 2.21:1 for white — AAA at any size.
What is the complementary color of #afb613?
#1A13B6 sits directly opposite on the wheel. Softer options are the split-complements #135DB6 and #6C13B6, which give the same contrast with far less vibration.
What colors go well with #afb613?
For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #979B4B for secondary text, #0F32BA as an accent and #6F730C for hover and pressed states. For a palette, the analogous pair #B66C13 and #5DB613 stays calm, while #1A13B6 is the loudest partner.
What is #afb613 in CMYK for printing?
cmyk(4%, 0%, 90%, 29%). 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 #afb613 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 #B68113; nudged cooler, #73B811.