#B2C027
Closest named color: Pea (#A4BF20). oklch(77.1% 0.164 115.1), rgb(178, 192, 39).
Aa
Black text reads best on this color (10.46:1).
About this color
#B2C027 is a medium-light, vivid yellow. In OKLCH its lightness is 77%, its chroma 0.164 and its hue 115°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pea (#A4BF20), ΔE 0.020 away. Black text reads best on it, at 10.46:1.
| Hue family | Yellows |
| Lightness | medium-light (77%) |
| Chroma | vivid (0.164) |
| Temperature | in between |
| Nearest name | Pea (#A4BF20) |
| Black text | 10.46:1 |
| White text | 2.00:1 |
Values
| HEX | #B2C027 |
| RGB | rgb(178, 192, 39) |
| HSL | hsl(65, 66%, 45%) |
| OKLCH | oklch(77.1% 0.164 115.1) |
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 #B2C027 | 2.00:1 | Fails | Lc -43.2 | Non-text elements, placeholder text |
| Black text on #B2C027 | 10.46:1 | AAA | Lc 65.2 | Content text, not long reading |
| #B2C027 text on white | 2.00:1 | Fails | Lc 38.8 | Non-text elements, placeholder text |
| #B2C027 text on black | 10.46:1 | AAA | Lc -63.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
#F5F8E7
oklch(97.2% 0.023 114.9)
-
Step 100
100
#E8EECA
oklch(93.5% 0.048 115)
-
Step 200
200
#D7E19B
oklch(88.6% 0.091 114.9)
-
Step 300
300 (this color)
#B2C027
oklch(77.1% 0.164 115.1)
-
Step 400
400
#9EAB00
oklch(70.7% 0.16 115.1)
-
Step 500
500
#879300
oklch(63.2% 0.144 115.4)
-
Step 600
600
#727B00
oklch(55.6% 0.126 114.8)
-
Step 700
700
#5F6700
oklch(49% 0.111 115)
-
Step 800
800
#4E5500
oklch(42.8% 0.097 115.1)
-
Step 900
900
#404600
oklch(37.6% 0.085 115.2)
-
Step 950
950
#262A00
oklch(27.2% 0.062 115.2)
#B2C027 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) | #CEB600 | 0.044 |
| Deuteranopia (no green cones) | #CDB836 | 0.046 |
| Tritanopia (no blue cones) | #BEB4A4 | 0.145 |
| Achromatopsia (no color) | #B7B7B7 | 0.165 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #B2C027
#B2C027
oklch(77.1% 0.164 115.1)
- #BBA3FF
#BBA3FF
oklch(77.1% 0.131 295.2)
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 #B2C027, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Pea #A4BF20 ΔE 0.020
- Olive Yellow #C2B709 ΔE 0.029
- Mustard Green #A8B504 ΔE 0.034
- Bright Olive #9CBB04 ΔE 0.036
- Light Olive Green #A4BE5C ΔE 0.041
- Yellow Green #9ACD32 ΔE 0.042
- Mustard Yellow #D2BD0A ΔE 0.044
- Slime Green #99CC04 ΔE 0.048
Use #B2C027 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.