#338D62

Closest named color: Viridian (#1E9167). oklch(57.8% 0.109 159.2), rgb(51, 141, 98).

Aa

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

About this color

#338D62 is a medium-dark, moderately saturated green. In OKLCH its lightness is 58%, its chroma 0.109 and its hue 159°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Viridian (#1E9167), ΔE 0.014 away. Black text reads best on it, at 5.12:1.

Hue familyGreens
Lightnessmedium-dark (58%)
Chromamoderately saturated (0.109)
Temperaturein between
Nearest nameViridian (#1E9167)
Black text5.12:1
White text4.09:1

Values

HEX#338D62
RGBrgb(51, 141, 98)
HSLhsl(151, 47%, 38%)
OKLCHoklch(57.8% 0.109 159.2)

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 #338D62 4.09:1 AA large text Lc -73.3 Content text, not long reading
Black text on #338D62 5.12:1 AA Lc 36.3 Non-text elements, placeholder text
#338D62 text on white 4.09:1 AA large text Lc 67.8 Content text, not long reading
#338D62 text on black 5.12:1 AA Lc -33.8 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 600.

  1. Step 50

    50

    #F2F7F4

    oklch(97.2% 0.007 160.1)

  2. Step 100

    100

    #E2EDE6

    oklch(93.6% 0.015 158.2)

  3. Step 200

    200

    #CBDFD3

    oklch(88.5% 0.027 159.5)

  4. Step 300

    300

    #A7CBB5

    oklch(81% 0.049 158.3)

  5. Step 400

    400

    #75B08F

    oklch(70.7% 0.079 159.1)

  6. Step 500

    500

    #4D9C73

    oklch(63.1% 0.101 158.9)

  7. Step 600

    600 (this color)

    #338D62

    oklch(57.8% 0.109 159.2)

  8. Step 700

    700

    #1C724B

    oklch(49.2% 0.102 158.8)

  9. Step 800

    800

    #1B5D3E

    oklch(42.8% 0.084 158.9)

  10. Step 900

    900

    #1D4C35

    oklch(37.7% 0.065 159.5)

  11. Step 950

    950

    #132D1F

    oklch(27.2% 0.042 158.4)

Export this scale for Tailwind in the Tailwind colors tool

#338D62 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)#8C835F0.102
Deuteranopia (no green cones)#7F7A650.099
Tritanopia (no blue cones)#008C820.049
Achromatopsia (no color)#7D7D7D0.109

Harmonies

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

Complementary

The opposite hue (180°).

  • #338D62

    #338D62

    oklch(57.8% 0.109 159.2)

  • #A35F8F

    #A35F8F

    oklch(57.8% 0.108 338.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338D62

    #338D62

    oklch(57.8% 0.109 159.2)

  • #65863C

    #65863C

    oklch(57.8% 0.109 129.2)

  • #008C86

    #008C86

    oklch(57.7% 0.1 189.5)

Open the analogous palette in the generator

Split complementary

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

  • #338D62

    #338D62

    oklch(57.8% 0.109 159.2)

  • #8D67AA

    #8D67AA

    oklch(57.9% 0.108 309.4)

  • #AF5C6C

    #AF5C6C

    oklch(57.7% 0.109 8.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338D62

    #338D62

    oklch(57.8% 0.109 159.2)

  • #6C72B9

    #6C72B9

    oklch(57.8% 0.109 278.7)

  • #AF6147

    #AF6147

    oklch(57.7% 0.108 39.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338D62

    #338D62

    oklch(57.8% 0.109 159.2)

  • #427EB7

    #427EB7

    oklch(57.9% 0.108 249.1)

  • #A35F8F

    #A35F8F

    oklch(57.8% 0.108 338.8)

  • #A36D26

    #A36D26

    oklch(57.9% 0.109 69.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #338D62 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.