#338E62
Closest named color: Viridian (#1E9167). oklch(58.1% 0.11 158.8), rgb(51, 142, 98).
Aa
Black text reads best on this color (5.18:1).
About this color
#338E62 is a medium-dark, moderately saturated green. In OKLCH its lightness is 58%, its chroma 0.110 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.012 away. Black text reads best on it, at 5.18:1.
| Hue family | Greens |
| Lightness | medium-dark (58%) |
| Chroma | moderately saturated (0.110) |
| Temperature | in between |
| Nearest name | Viridian (#1E9167) |
| Black text | 5.18:1 |
| White text | 4.04:1 |
Values
| HEX | #338E62 |
| RGB | rgb(51, 142, 98) |
| HSL | hsl(151, 47%, 38%) |
| OKLCH | oklch(58.1% 0.11 158.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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #338E62 | 4.04:1 | AA large text | Lc -72.9 | Content text, not long reading |
| Black text on #338E62 | 5.18:1 | AA | Lc 36.6 | Non-text elements, placeholder text |
| #338E62 text on white | 4.04:1 | AA large text | Lc 67.4 | Content text, not long reading |
| #338E62 text on black | 5.18:1 | AA | Lc -34.2 | 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.
-
Step 50
50
#F2F7F4
oklch(97.2% 0.007 160.1)
-
Step 100
100
#E2EDE6
oklch(93.6% 0.015 158.2)
-
Step 200
200
#CBDFD3
oklch(88.5% 0.027 159.5)
-
Step 300
300
#A6CBB5
oklch(80.9% 0.05 159)
-
Step 400
400
#75B08F
oklch(70.7% 0.079 159.1)
-
Step 500
500
#4D9C73
oklch(63.1% 0.101 158.9)
-
Step 600
600 (this color)
#338E62
oklch(58.1% 0.11 158.8)
-
Step 700
700
#1B724B
oklch(49.2% 0.102 158.9)
-
Step 800
800
#1A5D3D
oklch(42.8% 0.086 158.4)
-
Step 900
900
#1D4C34
oklch(37.6% 0.066 158.5)
-
Step 950
950
#122D1F
oklch(27.1% 0.043 159.1)
#338E62 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) | #8D835F | 0.104 |
| Deuteranopia (no green cones) | #807B65 | 0.099 |
| Tritanopia (no blue cones) | #008D82 | 0.049 |
| Achromatopsia (no color) | #7E7E7E | 0.111 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #338E62
#338E62
oklch(58.1% 0.11 158.8)
- #A45F90
#A45F90
oklch(58% 0.11 338.7)
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 #338E62, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Viridian #1E9167 ΔE 0.012
- Sea Green #2E8B57 ΔE 0.017
- Light Forest Green #4F9153 ΔE 0.031
- Dark Sage #598556 ΔE 0.037
- Ocean Green #3D9973 ΔE 0.038
- Fern Green #548D44 ΔE 0.041
- Slate Green #658D6D ΔE 0.052
- Jungle Green #048243 ΔE 0.057
Use #338E62 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.