#338A2F#338A2F

#338A2F is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.152 H 142.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#338A2F
RGBrgb(51, 138, 47)
HSLhsl(117, 49%, 36%)
HSVhsv(117, 66%, 54%)
CMYKcmyk(63%, 0%, 65.9%, 45.9%)
CIE-LABlab(50.79, -44.46, 39.92)
CIE-LCHlch(50.79, 59.75, 138.08°)
OKLaboklab(56.1% -0.121 0.0926)
OKLCHoklch(56.1% 0.152 142.6)
XYZxyz(10.9662, 19.0850, 5.7946)
Luminance0.1909 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2F #862F8A
analogous
#618A2F #338A2F #2F8A59
triadic
#338A2F #2F338A #8A2F33
tetradic
#338A2F #2F618A #862F8A #8A592F
square
#338A2F #2F618A #862F8A #8A592F
split-complementary
#338A2F #592F8A #8A2F61
monochromatic
#112F10 #225C1F #338A2F #44B83F #6CCC68

Accessibility & contrast

On white

4.36
#338A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#338A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A2F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A2F#FFFFFF#000000##000000
##338A2F1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D24
Deuteranopia (green-blind)
#827637
Tritanopia (blue-blind)
#238677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a2f;
/* rgb */ color: rgb(51, 138, 47);
/* oklch */ color: oklch(56.1% 0.152 142.6);
Tailwind
colors: {
  custom: {
    50: '#75ad6c',
    500: '#338a2f',
    950: '#000000',
  },
}
SCSS
$custom: #338a2f;
$custom-light: #75ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2f",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 117.363,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56096,
    "c": 0.15238,
    "h": 142.6
  },
  "luminance": 0.19086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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