#AFC781
Closest named color: Pale Olive (#B9CC81). oklch(79.5% 0.097 124), rgb(175, 199, 129).
Aa
Black text reads best on this color (11.30:1).
About this color
#AFC781 is a light, moderately saturated yellow. In OKLCH its lightness is 79%, its chroma 0.097 and its hue 124°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Olive (#B9CC81), ΔE 0.020 away. Black text reads best on it, at 11.30:1.
| Hue family | Yellows |
| Lightness | light (79%) |
| Chroma | moderately saturated (0.097) |
| Temperature | in between |
| Nearest name | Pale Olive (#B9CC81) |
| Black text | 11.30:1 |
| White text | 1.85:1 |
Values
| HEX | #AFC781 |
| RGB | rgb(175, 199, 129) |
| HSL | hsl(81, 38%, 64%) |
| OKLCH | oklch(79.5% 0.097 124) |
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 #AFC781 | 1.85:1 | Fails | Lc -39.2 | Non-text elements, placeholder text |
| Black text on #AFC781 | 11.30:1 | AAA | Lc 68.9 | Content text, not long reading |
| #AFC781 text on white | 1.85:1 | Fails | Lc 35.0 | Non-text elements, placeholder text |
| #AFC781 text on black | 11.30:1 | AAA | Lc -67.6 | 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 300.
-
Step 50
50
#F3F7EE
oklch(97.1% 0.013 126.4)
-
Step 100
100
#E6EDD9
oklch(93.5% 0.028 122.7)
-
Step 200
200
#D1E0B9
oklch(88.5% 0.054 124.6)
-
Step 300
300 (this color)
#AFC781
oklch(79.5% 0.097 124)
-
Step 400
400
#8DB031
oklch(70.7% 0.155 123.9)
-
Step 500
500
#769800
oklch(63.1% 0.157 124)
-
Step 600
600
#638000
oklch(55.7% 0.138 124)
-
Step 700
700
#536B00
oklch(49% 0.121 123.6)
-
Step 800
800
#435800
oklch(42.7% 0.106 124.1)
-
Step 900
900
#374900
oklch(37.6% 0.094 124.1)
-
Step 950
950
#202B00
oklch(26.9% 0.066 123.3)
#AFC781 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) | #CFBF7C | 0.046 |
| Deuteranopia (no green cones) | #CBBE84 | 0.045 |
| Tritanopia (no blue cones) | #B4C1B5 | 0.077 |
| Achromatopsia (no color) | #BEBEBE | 0.097 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFC781
#AFC781
oklch(79.5% 0.097 124)
- #C9ADEF
#C9ADEF
oklch(79.5% 0.096 303.7)
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 #AFC781, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pale Olive #B9CC81 ΔE 0.020
- Light Moss Green #A6C875 ΔE 0.021
- Greenish Tan #BCCB7A ΔE 0.023
- Tan Green #A9BE70 ΔE 0.029
- Light Olive #ACBF69 ΔE 0.030
- Pale Olive Green #B1D27B ΔE 0.033
- Dark Khaki #BDB76B ΔE 0.043
- Light Olive Green #A4BE5C ΔE 0.047
Use #AFC781 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.