#338D1E#338D1E

#338D1E is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.167 H 140.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338D1E
RGBrgb(51, 141, 30)
HSLhsl(109, 65%, 34%)
HSVhsv(109, 79%, 55%)
CMYKcmyk(63.8%, 0%, 78.7%, 44.7%)
CIE-LABlab(51.66, -47.08, 47.65)
CIE-LCHlch(51.66, 66.99, 134.65°)
OKLaboklab(56.78% -0.129 0.1066)
OKLCHoklch(56.78% 0.167 140.4)
XYZxyz(11.1239, 19.8462, 4.4725)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D1E #781E8D
analogous
#6A8D1E #338D1E #1E8D40
triadic
#338D1E #1E338D #8D1E33
tetradic
#338D1E #1E6A8D #781E8D #8D401E
square
#338D1E #1E6A8D #781E8D #8D401E
split-complementary
#338D1E #401E8D #8D1E6A
monochromatic
#0E2809 #215B13 #338D1E #45BF29 #67D94C

Accessibility & contrast

On white

4.23
#338D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#338D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D1E
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D1E#FFFFFF#000000##000000
##338D1E1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918002
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#258878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d1e;
/* rgb */ color: rgb(51, 141, 30);
/* oklch */ color: oklch(56.8% 0.167 140.4);
Tailwind
colors: {
  custom: {
    50: '#77af63',
    500: '#338d1e',
    950: '#000000',
  },
}
SCSS
$custom: #338d1e;
$custom-light: #77af63;
$custom-dark: #000000;
JSON
{
  "hex": "#338d1e",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 108.649,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56779,
    "c": 0.16738,
    "h": 140.4
  },
  "luminance": 0.19847
}

Semantic roles & 50–950 ramp

primary
#338D1E
secondary
#A64BBC
accent
#40E8C8
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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