#AF940E

A color in the Yellow, Gold family

#af940e is a color in the Yellow, Gold family: RGB(175, 148, 14), HSL(50°, 85%, 37%), CMYK(0%, 15%, 92%, 31%). Closest named color: darkgoldenrod. Contrast is 2.97:1 on white and 7.07:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#af940e
RGBrgb(175 148 14)
RGB (legacy)rgb(175, 148, 14)
RGB %rgb(69% 58% 5%)
HSLhsl(50 85% 37%)
HSV / HSBhsv(50, 92%, 69%)
HWBhwb(50 5% 31%)
CMYKcmyk(0%, 15%, 92%, 31%)
CIELAB (D50)lab(62.33 1.76 63.46)
LCHlch(62.33 63.48 88.41)
OKLaboklab(0.6713 -0.0133 0.1345)
OKLCHoklch(0.6713 0.1352 95.65)
Decimal11506702

Properties

Color ToneYellow, Gold
Closest named colordarkgoldenrod ΔE 3.8
Closest web-safe color#999900
Hue50°
Saturation (HSL / HSV)85% / 92%
Lightness (HSL)37%
Brightness or Value (HSV)69%
Luminance (Rec.601 / Rec.709)55% / 56%
Relative luminance (WCAG)0.3033
Red / Green / Blue175 / 148 / 14

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.97:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
7.07:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 56.1 / -45.7 · As background with white / black text: Lc -61.5 / 47.9

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #af940e;
  --color-brand-oklch: oklch(67.13% 0.1352 95.65);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(175 148 14 / 50%); }
/* Tailwind CSS */
<div class="bg-[#af940e] text-[#af940e] border-[#af940e]">