#338E1F#338E1F

#338E1F is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.1% C 0.168 H 140.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E1F
RGBrgb(51, 142, 31)
HSLhsl(109, 64%, 34%)
HSVhsv(109, 78%, 56%)
CMYKcmyk(64.1%, 0%, 78.2%, 44.3%)
CIE-LABlab(52.00, -47.37, 47.64)
CIE-LCHlch(52.00, 67.18, 134.84°)
OKLaboklab(57.06% -0.1298 0.1067)
OKLCHoklch(57.06% 0.168 140.6)
XYZxyz(11.2850, 20.1477, 4.5902)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1F #7A1F8E
analogous
#6B8E1F #338E1F #1F8E43
triadic
#338E1F #1F338E #8E1F33
tetradic
#338E1F #1F6B8E #7A1F8E #8E431F
square
#338E1F #1F6B8E #7A1F8E #8E431F
split-complementary
#338E1F #431F8E #8E1F6B
monochromatic
#0F2A09 #215C14 #338E1F #45C02A #68D94F

Accessibility & contrast

On white

4.18
#338E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E1F#FFFFFF#000000##000000
##338E1F1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1f;
/* rgb */ color: rgb(51, 142, 31);
/* oklch */ color: oklch(57.1% 0.168 140.6);
Tailwind
colors: {
  custom: {
    50: '#77b063',
    500: '#338e1f',
    950: '#000000',
  },
}
SCSS
$custom: #338e1f;
$custom-light: #77b063;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1f",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 109.189,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57063,
    "c": 0.16803,
    "h": 140.6
  },
  "luminance": 0.20149
}

Semantic roles & 50–950 ramp

primary
#338E1F
secondary
#A84DBB
accent
#41E7C9
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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