#7FA228
Closest named color: Avocado Green (#87A922). oklch(66.3% 0.15 124.6), rgb(127, 162, 40).
Aa
Black text reads best on this color (7.10:1).
About this color
#7FA228 is a medium-light, vivid yellow. In OKLCH its lightness is 66%, its chroma 0.150 and its hue 125°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Avocado Green (#87A922), ΔE 0.024 away. Black text reads best on it, at 7.10:1.
| Hue family | Yellows |
| Lightness | medium-light (66%) |
| Chroma | vivid (0.150) |
| Temperature | in between |
| Nearest name | Avocado Green (#87A922) |
| Black text | 7.10:1 |
| White text | 2.95:1 |
Values
| HEX | #7FA228 |
| RGB | rgb(127, 162, 40) |
| HSL | hsl(77, 60%, 40%) |
| OKLCH | oklch(66.3% 0.15 124.6) |
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 #7FA228 | 2.95:1 | Fails | Lc -61.3 | Content text, not long reading |
| Black text on #7FA228 | 7.10:1 | AAA | Lc 48.1 | Large or bold text, headings |
| #7FA228 text on white | 2.95:1 | Fails | Lc 56.0 | Large or bold text, headings |
| #7FA228 text on black | 7.10:1 | AAA | Lc -45.8 | 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 500.
-
Step 50
50
#F4F7F0
oklch(97.2% 0.01 125.7)
-
Step 100
100
#E6EDDD
oklch(93.6% 0.023 126.2)
-
Step 200
200
#D3DEC1
oklch(88.4% 0.041 124.2)
-
Step 300
300
#B6C995
oklch(80.8% 0.073 124.3)
-
Step 400
400
#90AD58
oklch(70.7% 0.117 124.8)
-
Step 500
500 (this color)
#7FA228
oklch(66.3% 0.15 124.6)
-
Step 600
600
#618000
oklch(55.5% 0.139 124.8)
-
Step 700
700
#516C00
oklch(49.2% 0.123 125)
-
Step 800
800
#425800
oklch(42.6% 0.107 124.6)
-
Step 900
900
#374900
oklch(37.6% 0.094 124.1)
-
Step 950
950
#202B04
oklch(26.9% 0.061 124.1)
#7FA228 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) | #AB970D | 0.064 |
| Deuteranopia (no green cones) | #A79633 | 0.067 |
| Tritanopia (no blue cones) | #859A8B | 0.123 |
| Achromatopsia (no color) | #969696 | 0.150 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7FA228
#7FA228
oklch(66.3% 0.15 124.6)
- #A879DC
#A879DC
oklch(66.3% 0.149 304.6)
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 #7FA228, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Avocado Green #87A922 ΔE 0.024
- Leaf #71AA34 ΔE 0.024
- Pea Soup Green #94A617 ΔE 0.031
- Pea Soup #929901 ΔE 0.031
- Pea Green #8EAB12 ΔE 0.035
- Fern #63A950 ΔE 0.038
- Off Green #6BA353 ΔE 0.038
- Asparagus #77AB56 ΔE 0.039
Use #7FA228 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.