#338F22#338F22

#338F22 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.168 H 140.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F22
RGBrgb(51, 143, 34)
HSLhsl(111, 62%, 35%)
HSVhsv(111, 76%, 56%)
CMYKcmyk(64.3%, 0%, 76.2%, 43.9%)
CIE-LABlab(52.36, -47.51, 46.92)
CIE-LCHlch(52.36, 66.78, 135.36°)
OKLaboklab(57.36% -0.13 0.1057)
OKLCHoklch(57.36% 0.168 140.9)
XYZxyz(11.4759, 20.4631, 4.8581)
Luminance0.2046 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F22 #7E228F
analogous
#6A8F22 #338F22 #228F47
triadic
#338F22 #22338F #8F2233
tetradic
#338F22 #226A8F #7E228F #8F4722
square
#338F22 #226A8F #7E228F #8F4722
split-complementary
#338F22 #47228F #8F226A
monochromatic
#102C0A #215E16 #338F22 #45C02E #69D755

Accessibility & contrast

On white

4.12
#338F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F22
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F22#FFFFFF#000000##000000
##338F221.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810B
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f22;
/* rgb */ color: rgb(51, 143, 34);
/* oklch */ color: oklch(57.4% 0.168 140.9);
Tailwind
colors: {
  custom: {
    50: '#77b165',
    500: '#338f22',
    950: '#000000',
  },
}
SCSS
$custom: #338f22;
$custom-light: #77b165;
$custom-dark: #000000;
JSON
{
  "hex": "#338f22",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 110.642,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57361,
    "c": 0.16752,
    "h": 140.9
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#338F22
secondary
#AA52BA
accent
#43E5CB
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F22

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

Preview Lab → · Contrast checker → · Palette generator →

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