Skip to content

#af830c

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

RGB
175, 131, 12
HSL
44°, 87%, 37%
CMYK
0, 25, 93, 31
Luminance
0.2537

At a glance

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

Hex
#af830c
Hue
44°
yellow
Saturation
87%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2537
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.07:1
Closest name
Dark Goldenrod
ΔE2000 2.2
Where it sits
Hue44° of 360°
Saturation87%
Lightness37%
Temperature
Warm ← → Cool12% 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#af830c
RGBrgb(175, 131, 12)
HSLhsl(44, 87%, 37%)
CMYKcmyk(0%, 25%, 93%, 31%)
LABlab(57.4 7.5 60.8)
LCHlch(57.4 61.3 83.0)
OKLCHoklch(0.636 0.128 84.2)
Decimal11502348
Display P3color(display-p3 0.686 0.514 0.047)

Copy-ready code

/* CSS */
color: #af830c;
background-color: #af830c;
/* Tailwind (arbitrary) */
class="text-[#af830c] bg-[#af830c]"
/* SCSS */
$brand: #af830c;
/* SwiftUI */
Color(red: 0.686, green: 0.514, blue: 0.047)
/* Android */
Color.parseColor("#af830c")
/* Flutter */
Color(0xFFAF830C)
/* Python / OpenCV (BGR) */
(12, 131, 175)

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

Accessibility — WCAG contrast

Aa
#af830c on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#af830c on black: 6.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #968300
deuteranopia · #A08F16
tritanopia · #BF756F

Color scale — 50 to 950

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

#FDFAF2
#FAF5E5
#F7EAC4
#F8DD96
#F4CD61
#F1BC2D
#E5AB10
#af830c
#99720A
#6E540C
#453408
Base = 700Lightest = 50 · #FDFAF2Darkest = 950 · #453408
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FAF5E5;
  --brand-200: #F7EAC4;
  --brand-300: #F8DD96;
  --brand-400: #F4CD61;
  --brand-500: #F1BC2D;
  --brand-600: #E5AB10;
  --brand-700: #af830c;
  --brand-800: #99720A;
  --brand-900: #6E540C;
  --brand-950: #453408;
  --brand: #af830c;
  --brand-ink: #000000;
}

Colors that work with #af830c

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#FAF9F4
Tinted page background
Border#EDE1C0
Hairlines and dividers
Muted text#9B854B
Captions on the surface
Accent#0861B3
Second voice, not a rival
Dark variant#775908
Hover, pressed, headers
Light variant#FDF7E7
Selected rows, tints
Dark surface#242014
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 #af830c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#0C38AF
Analogous left#AF320C
Analogous right#8AAF0C
Split-complement 1#0C8AAF
Split-complement 2#320CAF
Triadic 1#0CAF83
Triadic 2#830CAF
Tetradic#0CAF32

RGB percentages

Red68.6%
Green51.4%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta25.1%
Yellow93.1%
Key (black)31.4%

Color previews

#af830c text on a black background

contrast 6.07:1

Card sample

#af830c text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 131, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 131, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af830c;
background: linear-gradient(135deg, #af830c, #6EAF0C);

Monochromatic scale

Palettes built from #af830c

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.

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

#af830c, answered

What color is #af830c?

#af830c is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 2.2). It sits at 44° on the hue wheel with 87% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af830c?

rgb(175, 131, 12) — 175 red, 131 green and 12 blue out of 255, or 68.6% / 51.4% / 4.7% by channel.

Is #af830c a light or a dark color?

It is a mid-tone. Relative luminance is 0.2537 and perceived brightness is 54%, so black text on it reaches 6.07:1.

Should I use black or white text on #af830c?

Black. It scores 6.07:1 against #af830c, versus 3.46:1 for white — AA at any size.

What is the complementary color of #af830c?

#0C38AF sits directly opposite on the wheel. Softer options are the split-complements #0C8AAF and #320CAF, which give the same contrast with far less vibration.

What colors go well with #af830c?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B854B for secondary text, #0861B3 as an accent and #775908 for hover and pressed states. For a palette, the analogous pair #AF320C and #8AAF0C stays calm, while #0C38AF is the loudest partner.

What is #af830c in CMYK for printing?

cmyk(0%, 25%, 93%, 31%). 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 #af830c warm or cool?

Warm — it scores 12 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF660C; nudged cooler, #A1B10A.

Work with #af830c in the Color Lab