#338C2F#338C2F

#338C2F is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.155 H 142.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338C2F
RGBrgb(51, 140, 47)
HSLhsl(117, 50%, 37%)
HSVhsv(117, 66%, 55%)
CMYKcmyk(63.6%, 0%, 66.4%, 45.1%)
CIE-LABlab(51.46, -45.22, 40.66)
CIE-LCHlch(51.46, 60.81, 138.04°)
OKLaboklab(56.65% -0.123 0.0942)
OKLCHoklch(56.65% 0.155 142.6)
XYZxyz(11.2558, 19.6641, 5.8912)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2F #882F8C
analogous
#628C2F #338C2F #2F8C5A
triadic
#338C2F #2F338C #8C2F33
tetradic
#338C2F #2F628C #882F8C #8C5A2F
square
#338C2F #2F628C #882F8C #8C5A2F
split-complementary
#338C2F #5A2F8C #8C2F62
monochromatic
#123010 #225E20 #338C2F #44BA3E #6DCD69

Accessibility & contrast

On white

4.26
#338C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C2F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C2F#FFFFFF#000000##000000
##338C2F1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#847837
Tritanopia (blue-blind)
#228879
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338c2f;
/* rgb */ color: rgb(51, 140, 47);
/* oklch */ color: oklch(56.6% 0.155 142.6);
Tailwind
colors: {
  custom: {
    50: '#76ae6c',
    500: '#338c2f',
    950: '#000000',
  },
}
SCSS
$custom: #338c2f;
$custom-light: #76ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2f",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 117.419,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56648,
    "c": 0.15496,
    "h": 142.6
  },
  "luminance": 0.19665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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