#8A8A51

Closest named color: Camo (#7F8F4E). oklch(62% 0.078 108.5), rgb(138, 138, 81).

Aa

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

About this color

#8A8A51 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 62%, its chroma 0.078 and its hue 108°. Its hue sits on the warm side of the wheel. The nearest named color is Camo (#7F8F4E), ΔE 0.022 away. Black text reads best on it, at 5.83:1.

Hue familyYellows
Lightnessmedium-dark (62%)
Chromamoderately saturated (0.078)
Temperaturewarm
Nearest nameCamo (#7F8F4E)
Black text5.83:1
White text3.59:1

Values

HEX#8A8A51
RGBrgb(138, 138, 81)
HSLhsl(60, 26%, 43%)
OKLCHoklch(62% 0.078 108.5)

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 #8A8A51 3.59:1 AA large text Lc -69.1 Content text, not long reading
Black text on #8A8A51 5.83:1 AA Lc 40.5 Non-text elements, placeholder text
#8A8A51 text on white 3.59:1 AA large text Lc 63.6 Content text, not long reading
#8A8A51 text on black 5.83:1 AA Lc -38.1 Non-text elements, placeholder text

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.

  1. Step 50

    50

    #F6F6F2

    oklch(97.2% 0.005 106.5)

  2. Step 100

    100

    #EAEAE2

    oklch(93.5% 0.011 106.6)

  3. Step 200

    200

    #DADACB

    oklch(88.4% 0.02 106.8)

  4. Step 300

    300

    #C2C3A7

    oklch(80.9% 0.038 108.9)

  5. Step 400

    400

    #A3A478

    oklch(70.7% 0.061 108.9)

  6. Step 500

    500 (this color)

    #8A8A51

    oklch(62% 0.078 108.5)

  7. Step 600

    600

    #787738

    oklch(55.6% 0.085 108.1)

  8. Step 700

    700

    #65642B

    oklch(49.1% 0.078 108)

  9. Step 800

    800

    #525224

    oklch(42.8% 0.066 108.9)

  10. Step 900

    900

    #444423

    oklch(37.8% 0.051 108.6)

  11. Step 950

    950

    #282815

    oklch(27.1% 0.032 108.4)

Export this scale for Tailwind in the Tailwind colors tool

#8A8A51 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)#92864D0.015
Deuteranopia (no green cones)#9388540.016
Tritanopia (no blue cones)#91837C0.070
Achromatopsia (no color)#8787870.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #8A8A51

    #8A8A51

    oklch(62% 0.078 108.5)

  • #847FB3

    #847FB3

    oklch(62.1% 0.078 288.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8A8A51

    #8A8A51

    oklch(62% 0.078 108.5)

  • #A0804E

    #A0804E

    oklch(61.9% 0.078 77.7)

  • #6E9264

    #6E9264

    oklch(62.1% 0.078 139)

Open the analogous palette in the generator

Split complementary

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

  • #8A8A51

    #8A8A51

    oklch(62% 0.078 108.5)

  • #6987B5

    #6987B5

    oklch(61.9% 0.078 258.8)

  • #9A77A5

    #9A77A5

    oklch(61.9% 0.079 318)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8A8A51

    #8A8A51

    oklch(62% 0.078 108.5)

  • #508FAB

    #508FAB

    oklch(61.9% 0.077 228.7)

  • #AA738E

    #AA738E

    oklch(62.1% 0.078 348.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8A8A51

    #8A8A51

    oklch(62% 0.078 108.5)

  • #459597

    #459597

    oklch(62.1% 0.078 197.5)

  • #847FB3

    #847FB3

    oklch(62.1% 0.078 288.3)

  • #B07374

    #B07374

    oklch(62% 0.077 18.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8A8A51 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.