#B4C942

Closest named color: Yellow Green (#9ACD32). oklch(79.5% 0.158 117.8), rgb(180, 201, 66).

Aa

Black text reads best on this color (11.37:1).

About this color

#B4C942 is a light, vivid yellow. In OKLCH its lightness is 79%, its chroma 0.158 and its hue 118°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Yellow Green (#9ACD32), ΔE 0.038 away. Black text reads best on it, at 11.37:1.

Hue familyYellows
Lightnesslight (79%)
Chromavivid (0.158)
Temperaturein between
Nearest nameYellow Green (#9ACD32)
Black text11.37:1
White text1.84:1

Values

HEX#B4C942
RGBrgb(180, 201, 66)
HSLhsl(69, 56%, 52%)
OKLCHoklch(79.5% 0.158 117.8)

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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #B4C942 1.84:1 Fails Lc -38.7 Non-text elements, placeholder text
Black text on #B4C942 11.37:1 AAA Lc 69.3 Content text, not long reading
#B4C942 text on white 1.84:1 Fails Lc 34.6 Non-text elements, placeholder text
#B4C942 text on black 11.37:1 AAA Lc -68.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.

  1. Step 50

    50

    #F4F8E8

    oklch(97.2% 0.021 118.2)

  2. Step 100

    100

    #E7EFCC

    oklch(93.7% 0.047 117.8)

  3. Step 200

    200

    #D4E29F

    oklch(88.6% 0.089 117.8)

  4. Step 300

    300 (this color)

    #B4C942

    oklch(79.5% 0.158 117.8)

  5. Step 400

    400

    #99AD00

    oklch(70.7% 0.164 117.7)

  6. Step 500

    500

    #839400

    oklch(63.1% 0.146 117.6)

  7. Step 600

    600

    #6E7C00

    oklch(55.5% 0.128 117.3)

  8. Step 700

    700

    #5C6900

    oklch(49.2% 0.114 117.9)

  9. Step 800

    800

    #4B5600

    oklch(42.8% 0.1 117.9)

  10. Step 900

    900

    #3E4700

    oklch(37.7% 0.087 117.6)

  11. Step 950

    950

    #242A00

    oklch(27% 0.063 117.7)

Export this scale for Tailwind in the Tailwind colors tool

#B4C942 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#D6BE2E0.051
Deuteranopia (no green cones)#D4BF4C0.054
Tritanopia (no blue cones)#BFBEAE0.137
Achromatopsia (no color)#BFBFBF0.159

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #B4C942

    #B4C942

    oklch(79.5% 0.158 117.8)

  • #C5ABFF

    #C5ABFF

    oklch(79.4% 0.12 297.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #B4C942

    #B4C942

    oklch(79.5% 0.158 117.8)

  • #E7B418

    #E7B418

    oklch(79.4% 0.158 87.4)

  • #6DD77F

    #6DD77F

    oklch(79.4% 0.158 147.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #B4C942

    #B4C942

    oklch(79.5% 0.158 117.8)

  • #9FBAFF

    #9FBAFF

    oklch(79.5% 0.103 267.6)

  • #F295F0

    #F295F0

    oklch(79.5% 0.159 327.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #B4C942

    #B4C942

    oklch(79.5% 0.158 117.8)

  • #6CC7FF

    #6CC7FF

    oklch(79.5% 0.118 237.8)

  • #FF97BC

    #FF97BC

    oklch(79.5% 0.131 357.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #B4C942

    #B4C942

    oklch(79.5% 0.158 117.8)

  • #00D4E9

    #00D4E9

    oklch(79.5% 0.137 207.4)

  • #C5ABFF

    #C5ABFF

    oklch(79.4% 0.12 297.9)

  • #FF9E92

    #FF9E92

    oklch(79.5% 0.118 27.6)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B4C942, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #B4C942 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.