#338D2D#338D2D

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

Color values

HEX#338D2D
RGBrgb(51, 141, 45)
HSLhsl(116, 52%, 36%)
HSVhsv(116, 68%, 55%)
CMYKcmyk(63.8%, 0%, 68.1%, 44.7%)
CIE-LABlab(51.77, -45.80, 41.89)
CIE-LCHlch(51.77, 62.07, 137.56°)
OKLaboklab(56.9% -0.1247 0.0966)
OKLCHoklch(56.9% 0.158 142.3)
XYZxyz(11.3632, 19.9419, 5.7325)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D2D #872D8D
analogous
#638D2D #338D2D #2D8D57
triadic
#338D2D #2D338D #8D2D33
tetradic
#338D2D #2D638D #872D8D #8D572D
square
#338D2D #2D638D #872D8D #8D572D
split-complementary
#338D2D #572D8D #8D2D63
monochromatic
#11300F #225F1E #338D2D #44BB3C #6DCE66

Accessibility & contrast

On white

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

On black

4.99
#338D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D2D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D2D#FFFFFF#000000##000000
##338D2D1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#908020
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d2d;
/* rgb */ color: rgb(51, 141, 45);
/* oklch */ color: oklch(56.9% 0.158 142.3);
Tailwind
colors: {
  custom: {
    50: '#76af6b',
    500: '#338d2d',
    950: '#000000',
  },
}
SCSS
$custom: #338d2d;
$custom-light: #76af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338d2d",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 116.25,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.15774,
    "h": 142.3
  },
  "luminance": 0.19943
}

Semantic roles & 50–950 ramp

primary
#338D2D
secondary
#B061B5
accent
#4DDBD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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