#338D29#338D29

#338D29 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.9% C 0.161 H 141.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#338D29
RGBrgb(51, 141, 41)
HSLhsl(114, 55%, 36%)
HSVhsv(114, 71%, 55%)
CMYKcmyk(63.8%, 0%, 70.9%, 44.7%)
CIE-LABlab(51.74, -46.19, 43.56)
CIE-LCHlch(51.74, 63.49, 136.68°)
OKLaboklab(56.87% -0.126 0.0996)
OKLCHoklch(56.87% 0.161 141.7)
XYZxyz(11.2898, 19.9126, 5.3459)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D29 #83298D
analogous
#658D29 #338D29 #298D51
triadic
#338D29 #29338D #8D2933
tetradic
#338D29 #29658D #83298D #8D5129
square
#338D29 #29658D #83298D #8D5129
split-complementary
#338D29 #51298D #8D2965
monochromatic
#112E0D #225E1B #338D29 #44BC37 #6BD160

Accessibility & contrast

On white

4.21
#338D29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#338D29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D29
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D29#FFFFFF#000000##000000
##338D291.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801A
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d29;
/* rgb */ color: rgb(51, 141, 41);
/* oklch */ color: oklch(56.9% 0.161 141.7);
Tailwind
colors: {
  custom: {
    50: '#76af68',
    500: '#338d29',
    950: '#000000',
  },
}
SCSS
$custom: #338d29;
$custom-light: #76af68;
$custom-dark: #000000;
JSON
{
  "hex": "#338d29",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 41
  },
  "hsl": {
    "h": 114,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56866,
    "c": 0.16061,
    "h": 141.7
  },
  "luminance": 0.19914
}

Semantic roles & 50–950 ramp

primary
#338D29
secondary
#AD5BB6
accent
#4ADECF
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338D29

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

Preview Lab → · Contrast checker → · Palette generator →

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