#338F2F#338F2F

#338F2F is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.159 H 142.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#338F2F
RGBrgb(51, 143, 47)
HSLhsl(118, 51%, 37%)
HSVhsv(118, 67%, 56%)
CMYKcmyk(64.3%, 0%, 67.1%, 43.9%)
CIE-LABlab(52.46, -46.35, 41.76)
CIE-LCHlch(52.46, 62.38, 137.98°)
OKLaboklab(57.48% -0.1261 0.0965)
OKLCHoklch(57.48% 0.159 142.6)
XYZxyz(11.7001, 20.5528, 6.0393)
Luminance0.2055 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2F #8B2F8F
analogous
#638F2F #338F2F #2F8F5B
triadic
#338F2F #2F338F #8F2F33
tetradic
#338F2F #2F638F #8B2F8F #8F5B2F
square
#338F2F #2F638F #8B2F8F #8F5B2F
split-complementary
#338F2F #5B2F8F #8F2F63
monochromatic
#123311 #236120 #338F2F #43BD3E #6ECE6A

Accessibility & contrast

On white

4.11
#338F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#338F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F2F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F2F#FFFFFF#000000##000000
##338F2F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928223
Deuteranopia (green-blind)
#877A38
Tritanopia (blue-blind)
#218B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f2f;
/* rgb */ color: rgb(51, 143, 47);
/* oklch */ color: oklch(57.5% 0.159 142.6);
Tailwind
colors: {
  custom: {
    50: '#76b16c',
    500: '#338f2f',
    950: '#000000',
  },
}
SCSS
$custom: #338f2f;
$custom-light: #76b16c;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2f",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 117.5,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57476,
    "c": 0.1588,
    "h": 142.6
  },
  "luminance": 0.20554
}

Semantic roles & 50–950 ramp

primary
#338F2F
secondary
#B265B5
accent
#4EDAD4
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #338F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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