#338E20#338E20

#338E20 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.167 H 140.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E20
RGBrgb(51, 142, 32)
HSLhsl(110, 63%, 34%)
HSVhsv(110, 77%, 56%)
CMYKcmyk(64.1%, 0%, 77.5%, 44.3%)
CIE-LABlab(52.01, -47.30, 47.30)
CIE-LCHlch(52.01, 66.89, 135.00°)
OKLaboklab(57.07% -0.1295 0.1062)
OKLCHoklch(57.07% 0.167 140.7)
XYZxyz(11.2984, 20.1530, 4.6607)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E20 #7B208E
analogous
#6A8E20 #338E20 #208E44
triadic
#338E20 #20338E #8E2033
tetradic
#338E20 #206A8E #7B208E #8E4420
square
#338E20 #206A8E #7B208E #8E4420
split-complementary
#338E20 #44208E #8E206A
monochromatic
#0F2A09 #215C15 #338E20 #45C02B #68D851

Accessibility & contrast

On white

4.17
#338E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E20
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E20#FFFFFF#000000##000000
##338E201.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928107
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e20;
/* rgb */ color: rgb(51, 142, 32);
/* oklch */ color: oklch(57.1% 0.167 140.7);
Tailwind
colors: {
  custom: {
    50: '#77b064',
    500: '#338e20',
    950: '#000000',
  },
}
SCSS
$custom: #338e20;
$custom-light: #77b064;
$custom-dark: #000000;
JSON
{
  "hex": "#338e20",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 109.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5707,
    "c": 0.16747,
    "h": 140.7
  },
  "luminance": 0.20154
}

Semantic roles & 50–950 ramp

primary
#338E20
secondary
#A84FBB
accent
#42E6CA
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E20

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#338E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva