#AFB76F
Closest named color: Dark Khaki (#BDB76B). oklch(75.6% 0.095 113.9), rgb(175, 183, 111).
Aa
Black text reads best on this color (9.82:1).
About this color
#AFB76F is a medium-light, moderately saturated yellow. In OKLCH its lightness is 76%, its chroma 0.095 and its hue 114°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Khaki (#BDB76B), ΔE 0.019 away. Black text reads best on it, at 9.82:1.
| Hue family | Yellows |
| Lightness | medium-light (76%) |
| Chroma | moderately saturated (0.095) |
| Temperature | in between |
| Nearest name | Dark Khaki (#BDB76B) |
| Black text | 9.82:1 |
| White text | 2.13:1 |
Values
| HEX | #AFB76F |
| RGB | rgb(175, 183, 111) |
| HSL | hsl(67, 33%, 58%) |
| OKLCH | oklch(75.6% 0.095 113.9) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #AFB76F | 2.13:1 | Fails | Lc -46.6 | Large or bold text, headings |
| Black text on #AFB76F | 9.82:1 | AAA | Lc 62.0 | Content text, not long reading |
| #AFB76F text on white | 2.13:1 | Fails | Lc 41.9 | Non-text elements, placeholder text |
| #AFB76F text on black | 9.82:1 | AAA | Lc -60.3 | Content text, not long reading |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 400.
-
Step 50
50
#F5F6F0
oklch(97.1% 0.008 114.2)
-
Step 100
100
#E9EBDE
oklch(93.5% 0.017 113.8)
-
Step 200
200
#D8DCC3
oklch(88.5% 0.034 114.5)
-
Step 300
300
#C0C59A
oklch(80.8% 0.058 113.1)
-
Step 400
400 (this color)
#AFB76F
oklch(75.6% 0.095 113.9)
-
Step 500
500
#89912E
oklch(63.1% 0.121 113.8)
-
Step 600
600
#737A00
oklch(55.5% 0.124 113.7)
-
Step 700
700
#616700
oklch(49.2% 0.11 113.7)
-
Step 800
800
#4F5400
oklch(42.7% 0.096 113.7)
-
Step 900
900
#414608
oklch(37.7% 0.08 114.4)
-
Step 950
950
#262908
oklch(27% 0.051 114.2)
#AFB76F with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #C1B16A | 0.028 |
| Deuteranopia (no green cones) | #C0B272 | 0.028 |
| Tritanopia (no blue cones) | #B7AFA5 | 0.083 |
| Achromatopsia (no color) | #B1B1B1 | 0.095 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFB76F
#AFB76F
oklch(75.6% 0.095 113.9)
- #B3A4E7
#B3A4E7
oklch(75.6% 0.096 294.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AFB76F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Khaki #BDB76B ΔE 0.019
- Tan Green #A9BE70 ΔE 0.020
- Light Olive #ACBF69 ΔE 0.025
- Light Olive Green #A4BE5C ΔE 0.037
- Lichen #8FB67B ΔE 0.042
- Light Moss Green #A6C875 ΔE 0.045
- Desert #CCAD60 ΔE 0.045
- Sandstone #C9AE74 ΔE 0.045
Use #AFB76F in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.