#338D2C#338D2C

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

Color values

HEX#338D2C
RGBrgb(51, 141, 44)
HSLhsl(116, 52%, 36%)
HSVhsv(116, 69%, 55%)
CMYKcmyk(63.8%, 0%, 68.8%, 44.7%)
CIE-LABlab(51.76, -45.90, 42.31)
CIE-LCHlch(51.76, 62.43, 137.33°)
OKLaboklab(56.89% -0.1251 0.0974)
OKLCHoklch(56.89% 0.158 142.1)
XYZxyz(11.3441, 19.9343, 5.6323)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D2C #862C8D
analogous
#648D2C #338D2C #2C8D56
triadic
#338D2C #2C338D #8D2C33
tetradic
#338D2C #2C648D #862C8D #8D562C
square
#338D2C #2C648D #862C8D #8D562C
split-complementary
#338D2C #562C8D #8D2C64
monochromatic
#11300F #225E1D #338D2C #44BC3B #6CCF65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D2C#FFFFFF#000000##000000
##338D2C1.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)
#90801F
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d2c;
/* rgb */ color: rgb(51, 141, 44);
/* oklch */ color: oklch(56.9% 0.158 142.1);
Tailwind
colors: {
  custom: {
    50: '#76af6a',
    500: '#338d2c',
    950: '#000000',
  },
}
SCSS
$custom: #338d2c;
$custom-light: #76af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338d2c",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 44
  },
  "hsl": {
    "h": 115.67,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.15848,
    "h": 142.1
  },
  "luminance": 0.19935
}

Semantic roles & 50–950 ramp

primary
#338D2C
secondary
#AF60B5
accent
#4CDCD1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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