#AFC842
Closest named color: Pea (#A4BF20). oklch(78.9% 0.159 119.3), rgb(175, 200, 66).
Aa
Black text reads best on this color (11.16:1).
About this color
#AFC842 is a light, vivid yellow. In OKLCH its lightness is 79%, its chroma 0.159 and its hue 119°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pea (#A4BF20), ΔE 0.033 away. Black text reads best on it, at 11.16:1.
| Hue family | Yellows |
| Lightness | light (79%) |
| Chroma | vivid (0.159) |
| Temperature | in between |
| Nearest name | Pea (#A4BF20) |
| Black text | 11.16:1 |
| White text | 1.88:1 |
Values
| HEX | #AFC842 |
| RGB | rgb(175, 200, 66) |
| HSL | hsl(71, 55%, 52%) |
| OKLCH | oklch(78.9% 0.159 119.3) |
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 #AFC842 | 1.88:1 | Fails | Lc -39.8 | Non-text elements, placeholder text |
| Black text on #AFC842 | 11.16:1 | AAA | Lc 68.3 | Content text, not long reading |
| #AFC842 text on white | 1.88:1 | Fails | Lc 35.5 | Non-text elements, placeholder text |
| #AFC842 text on black | 11.16:1 | AAA | Lc -67.0 | 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
#F3F8E8
oklch(97.1% 0.022 121)
-
Step 100
100
#E6EFCD
oklch(93.6% 0.046 119.3)
-
Step 200
200
#D2E2A0
oklch(88.5% 0.088 119.3)
-
Step 300
300 (this color)
#AFC842
oklch(78.9% 0.159 119.3)
-
Step 400
400
#96AE00
oklch(70.7% 0.166 119.1)
-
Step 500
500
#809500
oklch(63.1% 0.149 119.2)
-
Step 600
600
#6B7D00
oklch(55.5% 0.131 119.3)
-
Step 700
700
#5A6900
oklch(49.1% 0.115 119)
-
Step 800
800
#495600
oklch(42.7% 0.101 119.3)
-
Step 900
900
#3C4800
oklch(37.7% 0.09 119.9)
-
Step 950
950
#232A00
oklch(26.9% 0.063 118.9)
#AFC842 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) | #D5BD2E | 0.055 |
| Deuteranopia (no green cones) | #D2BD4C | 0.058 |
| Tritanopia (no blue cones) | #B9BEAD | 0.135 |
| Achromatopsia (no color) | #BDBDBD | 0.159 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AFC842
#AFC842
oklch(78.9% 0.159 119.3)
- #C6A8FF
#C6A8FF
oklch(79% 0.125 299.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 #AFC842, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pea #A4BF20 ΔE 0.033
- Yellow Green #9ACD32 ΔE 0.033
- Light Olive Green #A4BE5C ΔE 0.042
- Slime Green #99CC04 ΔE 0.044
- Olive Yellow #C2B709 ΔE 0.046
- Light Moss Green #A6C875 ΔE 0.047
- Light Olive #ACBF69 ΔE 0.049
- Bright Olive #9CBB04 ΔE 0.050
Use #AFC842 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.