#338020#338020

#338020 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.2% C 0.150 H 140.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#338020
RGBrgb(51, 128, 32)
HSLhsl(108, 60%, 31%)
HSVhsv(108, 75%, 50%)
CMYKcmyk(60.2%, 0%, 75%, 49.8%)
CIE-LABlab(47.30, -42.05, 42.59)
CIE-LCHlch(47.30, 59.85, 134.64°)
OKLaboklab(53.17% -0.1154 0.0963)
OKLCHoklch(53.17% 0.15 140.1)
XYZxyz(9.3447, 16.2456, 4.0095)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338020 #6D2080
analogous
#638020 #338020 #20803D
triadic
#338020 #203380 #802033
tetradic
#338020 #206380 #6D2080 #803D20
square
#338020 #206380 #6D2080 #803D20
split-complementary
#338020 #3D2080 #802063
monochromatic
#0C1E08 #1F4F14 #338020 #47B12C #64D149

Accessibility & contrast

On white

4.94
#338020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#338020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338020
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338020#FFFFFF#000000##FFFFFF
##3380201.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740F
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#297C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #338020;
/* rgb */ color: rgb(51, 128, 32);
/* oklch */ color: oklch(53.2% 0.150 140.1);
Tailwind
colors: {
  custom: {
    50: '#74a662',
    500: '#338020',
    950: '#000000',
  },
}
SCSS
$custom: #338020;
$custom-light: #74a662;
$custom-dark: #000000;
JSON
{
  "hex": "#338020",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 108.125,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53172,
    "c": 0.1503,
    "h": 140.1
  },
  "luminance": 0.16246
}

Semantic roles & 50–950 ramp

primary
#338020
secondary
#9E49B3
accent
#45E3C4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #338020

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

Preview Lab → · Contrast checker → · Palette generator →

#338020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva