#339840#339840

#339840 is a mid, vivid green. Relative luminance 0.235; OKLCH L 60.1% C 0.157 H 145.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#339840
RGBrgb(51, 152, 64)
HSLhsl(128, 50%, 40%)
HSVhsv(128, 66%, 60%)
CMYKcmyk(66.4%, 0%, 57.9%, 40.4%)
CIE-LABlab(55.61, -47.69, 37.40)
CIE-LCHlch(55.61, 60.60, 141.89°)
OKLaboklab(60.14% -0.1289 0.0888)
OKLCHoklch(60.14% 0.157 145.4)
XYZxyz(13.5180, 23.5291, 8.6787)
Luminance0.2353 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339840 #98338B
analogous
#589833 #339840 #339873
triadic
#339840 #403398 #984033
tetradic
#339840 #335898 #98338B #987333
square
#339840 #335898 #98338B #987333
split-complementary
#339840 #733398 #983358
monochromatic
#143C19 #246A2D #339840 #47C157 #75D181

Accessibility & contrast

On white

3.68
#339840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#339840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #339840
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##339840#FFFFFF#000000##000000
##3398401.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A37
Deuteranopia (green-blind)
#8E8247
Tritanopia (blue-blind)
#179485
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #339840;
/* rgb */ color: rgb(51, 152, 64);
/* oklch */ color: oklch(60.1% 0.157 145.4);
Tailwind
colors: {
  custom: {
    50: '#77b777',
    500: '#339840',
    950: '#000000',
  },
}
SCSS
$custom: #339840;
$custom-light: #77b777;
$custom-dark: #000000;
JSON
{
  "hex": "#339840",
  "rgb": {
    "r": 51,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 127.723,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.60141,
    "c": 0.15656,
    "h": 145.4
  },
  "luminance": 0.2353
}

Semantic roles & 50–950 ramp

primary
#339840
secondary
#B96EAF
accent
#4FC7D9
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#0A1109
muted
#7C807B

Preview Lab

Preview with #339840

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

Preview Lab → · Contrast checker → · Palette generator →

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