#338A1F#338A1F

#338A1F is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.163 H 140.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338A1F
RGBrgb(51, 138, 31)
HSLhsl(109, 63%, 33%)
HSVhsv(109, 78%, 54%)
CMYKcmyk(63%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.66, -45.91, 46.33)
CIE-LCHlch(50.66, 65.22, 134.74°)
OKLaboklab(55.95% -0.1258 0.104)
OKLCHoklch(55.95% 0.163 140.4)
XYZxyz(10.7005, 18.9787, 4.3954)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1F #761F8A
analogous
#688A1F #338A1F #1F8A40
triadic
#338A1F #1F338A #8A1F33
tetradic
#338A1F #1F688A #761F8A #8A401F
square
#338A1F #1F688A #761F8A #8A401F
split-complementary
#338A1F #401F8A #8A1F68
monochromatic
#0E2609 #215814 #338A1F #45BC2A #66D74C

Accessibility & contrast

On white

4.38
#338A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#338A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A1F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A1F#FFFFFF#000000##000000
##338A1F1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#268576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a1f;
/* rgb */ color: rgb(51, 138, 31);
/* oklch */ color: oklch(56.0% 0.163 140.4);
Tailwind
colors: {
  custom: {
    50: '#76ad63',
    500: '#338a1f',
    950: '#000000',
  },
}
SCSS
$custom: #338a1f;
$custom-light: #76ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1f",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 108.785,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.16324,
    "h": 140.4
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#338A1F
secondary
#A54BBA
accent
#41E6C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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