#AFB500
Closest named color: Mustard Green (#A8B504). oklch(74.3% 0.165 112.2), rgb(175, 181, 0).
Aa
Black text reads best on this color (9.43:1).
About this color
#AFB500 is a medium-light, vivid yellow. In OKLCH its lightness is 74%, its chroma 0.165 and its hue 112°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Mustard Green (#A8B504), ΔE 0.010 away. Black text reads best on it, at 9.43:1.
| Hue family | Yellows |
| Lightness | medium-light (74%) |
| Chroma | vivid (0.165) |
| Temperature | in between |
| Nearest name | Mustard Green (#A8B504) |
| Black text | 9.43:1 |
| White text | 2.22:1 |
Values
| HEX | #AFB500 |
| RGB | rgb(175, 181, 0) |
| HSL | hsl(62, 100%, 35%) |
| OKLCH | oklch(74.3% 0.165 112.2) |
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 #AFB500 | 2.22:1 | Fails | Lc -48.4 | Large or bold text, headings |
| Black text on #AFB500 | 9.43:1 | AAA | Lc 60.3 | Content text, not long reading |
| #AFB500 text on white | 2.22:1 | Fails | Lc 43.6 | Non-text elements, placeholder text |
| #AFB500 text on black | 9.43:1 | AAA | Lc -58.5 | Large or bold text, headings |
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
#F5F7EC
oklch(97.2% 0.015 115)
-
Step 100
100
#EAECD6
oklch(93.6% 0.029 111.2)
-
Step 200
200
#D9DEB2
oklch(88.6% 0.058 112.9)
-
Step 300
300
#C2C878
oklch(81% 0.103 112.2)
-
Step 400
400 (this color)
#AFB500
oklch(74.3% 0.165 112.2)
-
Step 500
500
#8C9100
oklch(63.1% 0.14 112.2)
-
Step 600
600
#757A00
oklch(55.6% 0.124 112.6)
-
Step 700
700
#636600
oklch(49.1% 0.109 111.8)
-
Step 800
800
#515400
oklch(42.9% 0.095 112.1)
-
Step 900
900
#434500
oklch(37.6% 0.083 111.6)
-
Step 950
950
#272900
oklch(27% 0.06 112.6)
#AFB500 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) | #C4AC00 | 0.038 |
| Deuteranopia (no green cones) | #C4AF20 | 0.037 |
| Tritanopia (no blue cones) | #BCA99A | 0.148 |
| Achromatopsia (no color) | #AEAEAE | 0.165 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFB500
#AFB500
oklch(74.3% 0.165 112.2)
- #AF99FF
#AF99FF
oklch(74.3% 0.145 292.4)
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 #AFB500, closest first.
No curated palette has a color within ΔE 0.04 of #AFB500.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Mustard Green #A8B504 ΔE 0.010
- Pea #A4BF20 ΔE 0.027
- Bright Olive #9CBB04 ΔE 0.029
- Olive Yellow #C2B709 ΔE 0.029
- Muddy Yellow #BFAC05 ΔE 0.032
- Avocado #90B134 ΔE 0.045
- Mustard #CEB301 ΔE 0.046
- Light Olive Green #A4BE5C ΔE 0.047
Use #AFB500 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.