#339228#339228

#339228 is a mid, vivid green. Relative luminance 0.214; OKLCH L 58.2% C 0.167 H 141.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#339228
RGBrgb(51, 146, 40)
HSLhsl(114, 57%, 36%)
HSVhsv(114, 73%, 57%)
CMYKcmyk(65.1%, 0%, 72.6%, 42.7%)
CIE-LABlab(53.40, -48.12, 45.69)
CIE-LCHlch(53.40, 66.36, 136.48°)
OKLaboklab(58.24% -0.1313 0.1039)
OKLCHoklch(58.24% 0.167 141.6)
XYZxyz(12.0265, 21.4136, 5.5065)
Luminance0.2142 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339228 #872892
analogous
#689228 #339228 #289252
triadic
#339228 #283392 #922833
tetradic
#339228 #286892 #872892 #925228
square
#339228 #286892 #872892 #925228
split-complementary
#339228 #522892 #922868
monochromatic
#11320E #22621B #339228 #44C235 #6DD461

Accessibility & contrast

On white

3.98
#339228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#339228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #339228
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##339228#FFFFFF#000000##000000
##3392281.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968417
Deuteranopia (green-blind)
#8A7D33
Tritanopia (blue-blind)
#228D7D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #339228;
/* rgb */ color: rgb(51, 146, 40);
/* oklch */ color: oklch(58.2% 0.167 141.6);
Tailwind
colors: {
  custom: {
    50: '#77b368',
    500: '#339228',
    950: '#000000',
  },
}
SCSS
$custom: #339228;
$custom-light: #77b368;
$custom-dark: #000000;
JSON
{
  "hex": "#339228",
  "rgb": {
    "r": 51,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 113.774,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58237,
    "c": 0.16744,
    "h": 141.6
  },
  "luminance": 0.21415
}

Semantic roles & 50–950 ramp

primary
#339228
secondary
#B05DB9
accent
#48E0D0
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #339228

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

Preview Lab → · Contrast checker → · Palette generator →

#339228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva