#338B2F#338B2F

#338B2F is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.154 H 142.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338B2F
RGBrgb(51, 139, 47)
HSLhsl(117, 49%, 36%)
HSVhsv(117, 66%, 55%)
CMYKcmyk(63.3%, 0%, 66.2%, 45.5%)
CIE-LABlab(51.12, -44.84, 40.29)
CIE-LCHlch(51.12, 60.28, 138.06°)
OKLaboklab(56.37% -0.122 0.0934)
OKLCHoklch(56.37% 0.154 142.6)
XYZxyz(11.1103, 19.3732, 5.8427)
Luminance0.1937 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B2F #872F8B
analogous
#618B2F #338B2F #2F8B59
triadic
#338B2F #2F338B #8B2F33
tetradic
#338B2F #2F618B #872F8B #8B592F
square
#338B2F #2F618B #872F8B #8B592F
split-complementary
#338B2F #592F8B #8B2F61
monochromatic
#113010 #225D20 #338B2F #44B93E #6DCC68

Accessibility & contrast

On white

4.31
#338B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B2F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B2F#FFFFFF#000000##000000
##338B2F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E24
Deuteranopia (green-blind)
#837737
Tritanopia (blue-blind)
#238778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b2f;
/* rgb */ color: rgb(51, 139, 47);
/* oklch */ color: oklch(56.4% 0.154 142.6);
Tailwind
colors: {
  custom: {
    50: '#76ae6c',
    500: '#338b2f',
    950: '#000000',
  },
}
SCSS
$custom: #338b2f;
$custom-light: #76ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#338b2f",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 117.391,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56372,
    "c": 0.15367,
    "h": 142.6
  },
  "luminance": 0.19374
}

Semantic roles & 50–950 ramp

primary
#338B2F
secondary
#B063B3
accent
#4FD9D3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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