#338F1E#338F1E

#338F1E is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.170 H 140.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F1E
RGBrgb(51, 143, 30)
HSLhsl(109, 65%, 34%)
HSVhsv(109, 79%, 56%)
CMYKcmyk(64.3%, 0%, 79%, 43.9%)
CIE-LABlab(52.33, -47.80, 48.30)
CIE-LCHlch(52.33, 67.96, 134.70°)
OKLaboklab(57.33% -0.131 0.108)
OKLCHoklch(57.33% 0.17 140.5)
XYZxyz(11.4215, 20.4414, 4.5717)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1E #7A1E8F
analogous
#6C8F1E #338F1E #1E8F42
triadic
#338F1E #1E338F #8F1E33
tetradic
#338F1E #1E6C8F #7A1E8F #8F421E
square
#338F1E #1E6C8F #7A1E8F #8F421E
split-complementary
#338F1E #421E8F #8F1E6C
monochromatic
#0F2A09 #215C13 #338F1E #45C229 #68DA4E

Accessibility & contrast

On white

4.13
#338F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1E
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1E#FFFFFF#000000##000000
##338F1E1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938101
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f1e;
/* rgb */ color: rgb(51, 143, 30);
/* oklch */ color: oklch(57.3% 0.170 140.5);
Tailwind
colors: {
  custom: {
    50: '#77b163',
    500: '#338f1e',
    950: '#000000',
  },
}
SCSS
$custom: #338f1e;
$custom-light: #77b163;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1e",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 30
  },
  "hsl": {
    "h": 108.85,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57334,
    "c": 0.16974,
    "h": 140.5
  },
  "luminance": 0.20442
}

Semantic roles & 50–950 ramp

primary
#338F1E
secondary
#A84CBC
accent
#40E8C9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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