#2A6217

Closest named color: Dark Green (#006400). oklch(44.2% 0.121 139), rgb(42, 98, 23).

Aa

White text reads best on this color (7.34:1).

About this color

#2A6217 is a dark, moderately saturated green. In OKLCH its lightness is 44%, its chroma 0.121 and its hue 139°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Green (#006400), ΔE 0.029 away. White text reads best on it, at 7.34:1.

Hue familyGreens
Lightnessdark (44%)
Chromamoderately saturated (0.121)
Temperaturein between
Nearest nameDark Green (#006400)
Black text2.85:1
White text7.34:1

Values

HEX#2A6217
RGBrgb(42, 98, 23)
HSLhsl(105, 62%, 24%)
OKLCHoklch(44.2% 0.121 139)

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 #2A6217 7.34:1 AAA Lc -90.1 Preferred for body text
Black text on #2A6217 2.85:1 Fails Lc 18.8 Dividers and decoration only
#2A6217 text on white 7.34:1 AAA Lc 85.2 Fine for body text
#2A6217 text on black 2.85:1 Fails Lc -16.8 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F2F7F1

    oklch(97.1% 0.01 140.5)

  2. Step 100

    100

    #E3EDE0

    oklch(93.5% 0.02 138.4)

  3. Step 200

    200

    #CCE0C7

    oklch(88.5% 0.04 139.4)

  4. Step 300

    300

    #AACCA0

    oklch(80.9% 0.071 138.6)

  5. Step 400

    400

    #7BB26C

    oklch(70.8% 0.114 139.1)

  6. Step 500

    500

    #579E42

    oklch(63.2% 0.146 139.1)

  7. Step 600

    600

    #3A881E

    oklch(55.6% 0.158 139)

  8. Step 700

    700

    #2C730F

    oklch(49.1% 0.147 139)

  9. Step 800

    800 (this color)

    #2A6217

    oklch(44.2% 0.121 139)

  10. Step 900

    900

    #244D17

    oklch(37.7% 0.095 139)

  11. Step 950

    950

    #162D0F

    oklch(27% 0.059 138.9)

Export this scale for Tailwind in the Tailwind colors tool

#2A6217 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)#65590A0.080
Deuteranopia (no green cones)#5E541E0.081
Tritanopia (no blue cones)#255E530.083
Achromatopsia (no color)#5656560.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A6217

    #2A6217

    oklch(44.2% 0.121 139)

  • #6F397D

    #6F397D

    oklch(44.2% 0.122 319)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A6217

    #2A6217

    oklch(44.2% 0.121 139)

  • #585700

    #585700

    oklch(44.3% 0.096 109)

  • #00624B

    #00624B

    oklch(44.1% 0.088 169.7)

Open the analogous palette in the generator

Split complementary

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

  • #2A6217

    #2A6217

    oklch(44.2% 0.121 139)

  • #534491

    #534491

    oklch(44.2% 0.122 289.4)

  • #81315D

    #81315D

    oklch(44.1% 0.121 349.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A6217

    #2A6217

    oklch(44.2% 0.121 139)

  • #255195

    #255195

    oklch(44.2% 0.122 259)

  • #893037

    #893037

    oklch(44.1% 0.121 19)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A6217

    #2A6217

    oklch(44.2% 0.121 139)

  • #005B79

    #005B79

    oklch(44.1% 0.087 229.3)

  • #6F397D

    #6F397D

    oklch(44.2% 0.122 319)

  • #853A00

    #853A00

    oklch(44.2% 0.119 48.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2A6217 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.